]> git.cworth.org Git - apitrace/commitdiff
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 c6773925bc1eff67ac2b8eafee2ec1058396d3bc..654db16769e8f5cfdc533272773bff9ce88d0ea3 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);
     }
 }