1
0
mirror of https://github.com/narzoul/DDrawCompat synced 2024-12-30 08:55:36 +01:00

Fixed a deadlock when exiting Age of Wonders in fullscreen mode

Note that exiting with Alt+F4 still won't work. See issue #167.
This commit is contained in:
narzoul 2022-12-04 11:51:19 +01:00
parent 2b8805d9ef
commit 88708ce398

View File

@ -138,7 +138,7 @@ namespace Gdi
void destroyWindow(HWND hwnd)
{
execute([&]() { DestroyWindow(hwnd); });
PostMessage(hwnd, WM_CLOSE, 0, 0);
}
void executeFunc(const std::function<void()>& func)