diff --git a/host/platform/Windows/src/platform.c b/host/platform/Windows/src/platform.c index da7d8ce7..8d6ee690 100644 --- a/host/platform/Windows/src/platform.c +++ b/host/platform/Windows/src/platform.c @@ -257,7 +257,7 @@ static int appThread(void * opaque) { RegisterTrayIcon(); int result = app_main(app.argc, app.argv); - DestroyWindow(app.messageWnd); + SendMessage(app.messageWnd, WM_CLOSE, 0, 0); return result; }