]> git.cworth.org Git - apitrace/commitdiff
Ignore Windows thread naming exceptions.
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 31 Jan 2012 12:29:54 +0000 (12:29 +0000)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 31 Jan 2012 12:29:54 +0000 (12:29 +0000)
common/os_win32.cpp

index 199ae5a7e4a656be9b41c24d8c53090acabe0360..33fe427bad7370784d32c42c416e172ed97bcd89 100644 (file)
@@ -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