Make sure mainThread started from DLL. Mistake?

This commit is contained in:
Oleksii Shevchuk 2017-06-04 21:08:48 +03:00
parent 51ec01b288
commit ef7c494301
1 changed files with 4 additions and 5 deletions

View File

@ -25,7 +25,7 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved )
case DLL_PROCESS_ATTACH:
//MessageBoxA(0, "injection ok", "injection ok", MB_OK | MB_ICONINFORMATION);
hAppInstance = hinstDLL;
mainThread(NULL);
/* mainThread(NULL); */
hThread = CreateThread(NULL,
0, // dwStackSize
mainThread, // lpStartAddress
@ -42,4 +42,3 @@ BOOL WINAPI DllMain( HINSTANCE hinstDLL, DWORD dwReason, LPVOID lpReserved )
}
return bReturnValue;
}