Skip to content

Commit

Permalink
Fixes #3
Browse files Browse the repository at this point in the history
  • Loading branch information
luskaner committed Nov 5, 2024
1 parent 434270d commit cb85603
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
8 changes: 4 additions & 4 deletions FakeOnline/FakeOnline.rc
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,8 @@ END
//

VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,0
PRODUCTVERSION 1,0,0,0
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
Expand All @@ -68,12 +68,12 @@ BEGIN
BEGIN
VALUE "CompanyName", "luskaner"
VALUE "FileDescription", "Fake an always online status"
VALUE "FileVersion", "1.0.0.0"
VALUE "FileVersion", "1.0.0.1"
VALUE "InternalName", "FakeOnline.dll"
VALUE "LegalCopyright", "Copyright (C) 2024 - https://github.com/luskaner/ageLANServerLauncherCompanion"
VALUE "OriginalFilename", "FakeOnline.dll"
VALUE "ProductName", "FakeOnline"
VALUE "ProductVersion", "1.0.0.0"
VALUE "ProductVersion", "1.0.0.1"
END
END
BLOCK "VarFileInfo"
Expand Down
6 changes: 3 additions & 3 deletions FakeOnline/fakeonline.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,12 @@ HRESULT STDMETHODCALLTYPE FakeNetworkListManager::Invoke(DISPID dispIdMember, RE
}

HRESULT STDMETHODCALLTYPE FakeNetworkListManager::get_IsConnectedToInternet(VARIANT_BOOL* pbIsConnected) {
*pbIsConnected = VARIANT_TRUE;
return S_OK;
return get_IsConnected(pbIsConnected);
}

HRESULT STDMETHODCALLTYPE FakeNetworkListManager::get_IsConnected(VARIANT_BOOL* pbIsConnected) {
return original->get_IsConnected(pbIsConnected);
*pbIsConnected = VARIANT_TRUE;
return S_OK;
}

HRESULT STDMETHODCALLTYPE FakeNetworkListManager::QueryInterface(REFIID riid, void** ppvObject) {
Expand Down

0 comments on commit cb85603

Please sign in to comment.