From cb8560373c678dc77b78eedaa78c8359daa92917 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Fern=C3=A1ndez=20Aldana?= Date: Tue, 5 Nov 2024 16:07:45 +0100 Subject: [PATCH] Fixes #3 --- FakeOnline/FakeOnline.rc | 8 ++++---- FakeOnline/fakeonline.cpp | 6 +++--- 2 files changed, 7 insertions(+), 7 deletions(-) diff --git a/FakeOnline/FakeOnline.rc b/FakeOnline/FakeOnline.rc index f0d3892..4ceae5c 100644 --- a/FakeOnline/FakeOnline.rc +++ b/FakeOnline/FakeOnline.rc @@ -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 @@ -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" diff --git a/FakeOnline/fakeonline.cpp b/FakeOnline/fakeonline.cpp index af34244..3d71cd2 100644 --- a/FakeOnline/fakeonline.cpp +++ b/FakeOnline/fakeonline.cpp @@ -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) {