Close thread handle after starting DllInit() thread from DllMain()
This commit is contained in:
parent
e2464653c7
commit
1b2232cf5d
1 changed files with 3 additions and 0 deletions
|
@ -15,6 +15,9 @@ BOOL APIENTRY DllMain(HMODULE hModule,
|
||||||
DisableThreadLibraryCalls(hModule);
|
DisableThreadLibraryCalls(hModule);
|
||||||
DllPreInit(hModule);
|
DllPreInit(hModule);
|
||||||
hThread = CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)DllInit, hModule, 0, 0);
|
hThread = CreateThread(NULL, NULL, (LPTHREAD_START_ROUTINE)DllInit, hModule, 0, 0);
|
||||||
|
if (hThread) {
|
||||||
|
CloseHandle(hThread);
|
||||||
|
}
|
||||||
break;
|
break;
|
||||||
case DLL_PROCESS_DETACH:
|
case DLL_PROCESS_DETACH:
|
||||||
DllUnload(hModule);
|
DllUnload(hModule);
|
||||||
|
|
Loading…
Reference in a new issue