main: Workaround crash on exit on mingw with win32 threads

This commit is contained in:
Jonas Kvinge
2025-08-10 22:41:38 +02:00
parent 742be01aa6
commit 183aba4181

View File

@@ -344,6 +344,11 @@ int main(int argc, char *argv[]) {
int ret = QCoreApplication::exec();
#ifdef __MINGW32__
// Workaround crash on exit with win32 threads
TerminateProcess(GetCurrentProcess(), 0);
#endif
return ret;
}