Skip to content

Commit fadd8b1

Browse files
committed
Use PostQuitMessage in CCore::Quit
1 parent 000cc85 commit fadd8b1

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Client/core/CCore.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1464,6 +1464,7 @@ void CCore::Quit(bool bInstantly)
14641464
WatchDogBeginSection("Q0"); // Allow loader to detect freeze on exit
14651465

14661466
// Hide game window to make quit look instant
1467+
PostQuitMessage(0);
14671468
ShowWindow(GetHookedWindow(), SW_HIDE);
14681469

14691470
// Destroy the client
@@ -1476,7 +1477,6 @@ void CCore::Quit(bool bInstantly)
14761477

14771478
// Use TerminateProcess for now as exiting the normal way crashes
14781479
TerminateProcess(GetCurrentProcess(), 0);
1479-
// PostQuitMessage ( 0 );
14801480
}
14811481
else
14821482
{

0 commit comments

Comments
 (0)