diff options
author | José Fonseca <jose.r.fonseca@gmail.com> | 2011-10-11 20:29:02 +0100 |
---|---|---|
committer | José Fonseca <jose.r.fonseca@gmail.com> | 2011-10-11 20:29:40 +0100 |
commit | 71f48cf83271636cdae2e223d2b795b6e7491347 (patch) | |
tree | f20929d94ec245304852a27f72a78c8b31e0726a | |
parent | 96d9dda5334c63cbe46ecc654bf76167541d537a (diff) |
Add comment about SetUnhandledExceptionFilter
-rw-r--r-- | common/os_win32.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
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); } } |