[runtime] Fix the unregistration of our exception handler on windows. Fixes #23221.
authorZoltan Varga <vargaz@gmail.com>
Sun, 21 Sep 2014 18:54:24 +0000 (14:54 -0400)
committerZoltan Varga <vargaz@gmail.com>
Sun, 21 Sep 2014 18:54:24 +0000 (14:54 -0400)
mono/mini/exceptions-x86.c

index 9c46d34bd201247f0fda88982cdb46bc067fa3a2..21a2840e5f6ca356a22ec1ce57e014ce0f1e4363 100644 (file)
@@ -250,8 +250,9 @@ void win32_seh_init()
 
 void win32_seh_cleanup()
 {
-       if (mono_old_win_toplevel_exception_filter) SetUnhandledExceptionFilter(mono_old_win_toplevel_exception_filter);
-       RemoveVectoredExceptionHandler (seh_unhandled_exception_filter);
+       if (mono_old_win_toplevel_exception_filter)
+               SetUnhandledExceptionFilter(mono_old_win_toplevel_exception_filter);
+       RemoveVectoredExceptionHandler (mono_win_vectored_exception_handle);
 }
 
 void win32_seh_set_handler(int type, MonoW32ExceptionHandler handler)