From 56f9a9a436a6ac2e445b69732df146332a87675a Mon Sep 17 00:00:00 2001 From: Peter Repukat Date: Tue, 29 Nov 2016 18:40:47 +0100 Subject: [PATCH] fix: trying to permanently unhook steam when overlaywindow is not found --- GloSC_GameLauncher/GloSC_GameLauncher.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/GloSC_GameLauncher/GloSC_GameLauncher.cpp b/GloSC_GameLauncher/GloSC_GameLauncher.cpp index 071c244..e244941 100644 --- a/GloSC_GameLauncher/GloSC_GameLauncher.cpp +++ b/GloSC_GameLauncher/GloSC_GameLauncher.cpp @@ -111,10 +111,9 @@ void GloSC_GameLauncher::checkSharedMem() sharedMemInstance.unlock(); - if (FindWindow(NULL, L"GloSC_OverlayWindow") == NULL) + if (bHookedSteam && FindWindow(NULL, L"GloSC_OverlayWindow") == NULL) { unhookBindings(); - bHookedSteam = false; } }