diff options
Diffstat (limited to 'src/winmain/qtmain_winrt.cpp')
-rw-r--r-- | src/winmain/qtmain_winrt.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/winmain/qtmain_winrt.cpp b/src/winmain/qtmain_winrt.cpp index 3553d966d8..473c41ab8e 100644 --- a/src/winmain/qtmain_winrt.cpp +++ b/src/winmain/qtmain_winrt.cpp @@ -156,7 +156,9 @@ public: AppContainer *app = reinterpret_cast<AppContainer *>(param); int argc = app->args.count(); char **argv = app->args.data(); - return main(argc, argv); + const int res = main(argc, argv); + app->core->Exit(); + return res; }, this, CREATE_SUSPENDED, nullptr); HRESULT hr; |