diff options
author | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-06 20:12:49 +0200 |
---|---|---|
committer | Stanislaw Halik <sthalik@misaki.pl> | 2016-09-08 17:50:12 +0200 |
commit | 12930b7ecee218d494af38e67f355bdee3fe4fd9 (patch) | |
tree | 1228e5d2fdfa805cd640270297f46afe4a6d1717 /gui/main.cpp | |
parent | 31094f6190233d9b32b2dea47d81ae0bc7ee2e4f (diff) |
gui/main: terminate before main ends on msvc
Diffstat (limited to 'gui/main.cpp')
-rw-r--r-- | gui/main.cpp | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/gui/main.cpp b/gui/main.cpp index 2e809d0f..e452b781 100644 --- a/gui/main.cpp +++ b/gui/main.cpp @@ -161,9 +161,19 @@ main(int argc, char** argv) qDebug() << "exit: main()"; + // msvc crashes again in some destructor +#if defined(_MSC_VER) + qDebug() << "exit: terminating"; + TerminateProcess(GetCurrentProcess(), 0); +#endif + return 0; } +#if defined(Q_CREATOR_RUN) +# pragma clang diagnostic ignored "-Wmain" +#endif + #ifdef _MSC_VER int WINAPI WinMain (struct HINSTANCE__ *hInstance, |