From 386df5c300cc71f2d7fe1cc8765408562f42d17b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 11 May 2024 23:25:20 +0800 Subject: [PATCH] Revert --- LunaHook/main.cc | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/LunaHook/main.cc b/LunaHook/main.cc index fae0ddb..5bdcaa6 100644 --- a/LunaHook/main.cc +++ b/LunaHook/main.cc @@ -68,10 +68,7 @@ DWORD WINAPI Pipe(LPVOID) break; } } - #if (_WIN32_WINNT <= _WIN32_WINNT_WIN7) - //xp版FreeLibraryAndExitThread会导致游戏崩溃 - dont_detach=true; - #endif + if(dont_detach){ host_connected=false; return Pipe(0);