mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-19 23:28:54 +02:00
gthread-win32: Check for specific exception code
https://learn.microsoft.com/en-us/cpp/code-quality/c6320?view=msvc-170
This commit is contained in:
@@ -601,7 +601,8 @@ SetThreadName (DWORD dwThreadID,
|
|||||||
RaiseException (EXCEPTION_SET_THREAD_NAME, 0, infosize,
|
RaiseException (EXCEPTION_SET_THREAD_NAME, 0, infosize,
|
||||||
(const ULONG_PTR *) &info);
|
(const ULONG_PTR *) &info);
|
||||||
}
|
}
|
||||||
__except (EXCEPTION_EXECUTE_HANDLER)
|
__except (GetExceptionCode () == EXCEPTION_SET_THREAD_NAME ?
|
||||||
|
EXCEPTION_EXECUTE_HANDLER : EXCEPTION_CONTINUE_SEARCH)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
#else
|
#else
|
||||||
|
Reference in New Issue
Block a user