Add comment about SetUnhandledExceptionFilter
authorJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 11 Oct 2011 19:29:02 +0000 (20:29 +0100)
committerJosé Fonseca <jose.r.fonseca@gmail.com>
Tue, 11 Oct 2011 19:29:40 +0000 (20:29 +0100)
common/os_win32.cpp

index c677392..654db16 100644 (file)
@@ -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);
     }
 }