mirror of
https://github.com/TombEngine/TombEngine.git
synced 2025-04-28 15:57:59 +03:00
Update winmain.cpp
This commit is contained in:
parent
e27ec86e85
commit
8427ae7706
1 changed files with 3 additions and 1 deletions
|
@ -639,7 +639,9 @@ int WINAPI WinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPSTR lpCmdLine
|
|||
|
||||
void WinClose()
|
||||
{
|
||||
CloseHandle((HANDLE)ConsoleThreadHandle);
|
||||
if (ConsoleThreadHandle)
|
||||
CloseHandle((HANDLE)ConsoleThreadHandle);
|
||||
|
||||
WaitForSingleObject((HANDLE)ThreadHandle, 5000);
|
||||
|
||||
DestroyAcceleratorTable(hAccTable);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue