From 71f48cf83271636cdae2e223d2b795b6e7491347 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jos=C3=A9=20Fonseca?= Date: Tue, 11 Oct 2011 20:29:02 +0100 Subject: [PATCH] Add comment about SetUnhandledExceptionFilter --- common/os_win32.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/common/os_win32.cpp b/common/os_win32.cpp index c677392..654db16 100644 --- a/common/os_win32.cpp +++ b/common/os_win32.cpp @@ -161,6 +161,12 @@ SetExceptionCallback(void (*callback)(void)) gCallback = callback; assert(!prevExceptionFilter); + + /* + * TODO: Unfortunately it seems that the CRT will reset the exception + * handler in certain circumnstances. See + * http://www.codeproject.com/KB/winsdk/crash_hook.aspx + */ prevExceptionFilter = SetUnhandledExceptionFilter(UnhandledExceptionFilter); } } -- 2.43.0