From: José Fonseca Date: Tue, 31 Jan 2012 12:29:54 +0000 (+0000) Subject: Ignore Windows thread naming exceptions. X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=3f152046f610ca45f99bdee1bf8d146d5d00be72;p=apitrace Ignore Windows thread naming exceptions. --- diff --git a/common/os_win32.cpp b/common/os_win32.cpp index 199ae5a..33fe427 100644 --- a/common/os_win32.cpp +++ b/common/os_win32.cpp @@ -255,6 +255,15 @@ unhandledExceptionHandler(PEXCEPTION_POINTERS pExceptionInfo) return EXCEPTION_CONTINUE_SEARCH; } + /* + * Ignore thread naming exception. + * + * http://msdn.microsoft.com/en-us/library/xcb2z8hs.aspx + */ + if (pExceptionRecord->ExceptionCode == 0x406d1388) { + return EXCEPTION_CONTINUE_SEARCH; + } + // Clear direction flag #ifdef _MSC_VER #ifndef _WIN64