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
1 changed files with 3 additions and 0 deletions

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