From 3f152046f610ca45f99bdee1bf8d146d5d00be72 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 31 Jan 2012 12:29:54 +0000 Subject: [PATCH] Ignore Windows thread naming exceptions. --- common/os_win32.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) 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 -- 2.43.0