From dd8797fe697142ed74c000382ac5d868f5f9ab6e Mon Sep 17 00:00:00 2001 From: thesupersonic16 Date: Mon, 30 Sep 2019 00:18:46 +1000 Subject: [PATCH] Fixed DllMain --- src/LostCodeLoader/dllmain.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/LostCodeLoader/dllmain.cpp b/src/LostCodeLoader/dllmain.cpp index 41d9070..eed8402 100644 --- a/src/LostCodeLoader/dllmain.cpp +++ b/src/LostCodeLoader/dllmain.cpp @@ -135,10 +135,12 @@ BOOL APIENTRY DllMain( HMODULE hModule, { case DLL_PROCESS_ATTACH: InitLoader(); + break; case DLL_THREAD_ATTACH: case DLL_THREAD_DETACH: - RaiseEvents(modExitEvents); + break; case DLL_PROCESS_DETACH: + RaiseEvents(modExitEvents); break; } return TRUE;