Close thread handle after starting DllInit() thread from DllMain()

This commit is contained in:
Daniel S. 2019-11-20 20:52:20 +01:00
parent e2464653c7
commit 1b2232cf5d

View file

@ -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);