mirror of
https://github.com/WerWolv/ImHex.git
synced 2026-03-27 23:37:05 -05:00
fix: Use Win32 functions to terminate thread on Windows
This commit is contained in:
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user