diff --git a/main/gui/source/crash_handlers.cpp b/main/gui/source/crash_handlers.cpp index 79c2bbcaf..f7184890c 100644 --- a/main/gui/source/crash_handlers.cpp +++ b/main/gui/source/crash_handlers.cpp @@ -85,7 +85,11 @@ namespace hex::crash { }); // Terminate this thread - pthread_kill(pthread_self(), SIGABRT); + #if defined(_MSC_VER) + TerminateThread(GetCurrentThread(), EXIT_FAILURE); + #else + pthread_kill(pthread_self(), SIGABRT); + #endif while (true) { std::this_thread::sleep_for(std::chrono::milliseconds(100));