Alexandre Julliard : ntoskrnl.exe: Remove the vectored exception handler on dll unload.

Alexandre Julliard julliard at winehq.org
Fri Jan 30 07:58:15 CST 2009


Module: wine
Branch: master
Commit: 13ff441aea4ac895294b4c1b6a1950de74d43f81
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=13ff441aea4ac895294b4c1b6a1950de74d43f81

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jan 30 11:44:13 2009 +0100

ntoskrnl.exe: Remove the vectored exception handler on dll unload.

---

 dlls/ntoskrnl.exe/ntoskrnl.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 7d7236d..a62f02a 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1175,6 +1175,9 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
         RtlAddVectoredExceptionHandler( TRUE, vectored_handler );
         KeQueryTickCount( &count );  /* initialize the global KeTickCount */
         break;
+    case DLL_PROCESS_DETACH:
+        RtlRemoveVectoredExceptionHandler( vectored_handler );
+        break;
     }
     return TRUE;
 }




More information about the wine-cvs mailing list