gthread-win32: Print critical if we cannot register fallback handler for the thread name exception

This commit is contained in:
Luca Bacci 2023-09-04 16:12:55 +02:00
parent d60ca9aa38
commit fb3f1733c3

View File

@ -688,9 +688,8 @@ g_thread_win32_init (void)
*/
SetThreadName_VEH_handle = AddVectoredExceptionHandler (0, &SetThreadName_VEH);
if (SetThreadName_VEH_handle == NULL)
{
/* This is bad, but what can we do? */
}
g_critical ("%s failed with error code %u",
"AddVectoredExceptionHandler", (unsigned int) GetLastError ());
#endif
}