diff --git a/ScrapHacks/ScrapHack/dllmain.cpp b/ScrapHacks/ScrapHack/dllmain.cpp index 5954cd5..1665555 100644 --- a/ScrapHacks/ScrapHack/dllmain.cpp +++ b/ScrapHacks/ScrapHack/dllmain.cpp @@ -15,6 +15,9 @@ BOOL APIENTRY DllMain(HMODULE hModule, DisableThreadLibraryCalls(hModule); DllPreInit(hModule); hThread = CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)DllInit, hModule, 0, 0); + if (hThread) { + CloseHandle(hThread); + } break; case DLL_PROCESS_DETACH: DllUnload(hModule);