Alexandre Julliard : ntoskrnl.exe: Don' t bother to remove exception handler at process exit.

Alexandre Julliard julliard at winehq.org
Mon May 20 15:13:57 CDT 2013


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon May 20 12:28:08 2013 +0200

ntoskrnl.exe: Don't bother to remove exception handler at process exit.

---

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

diff --git a/dlls/ntoskrnl.exe/ntoskrnl.c b/dlls/ntoskrnl.exe/ntoskrnl.c
index 654957a..2d8db4b 100644
--- a/dlls/ntoskrnl.exe/ntoskrnl.c
+++ b/dlls/ntoskrnl.exe/ntoskrnl.c
@@ -1861,6 +1861,7 @@ BOOL WINAPI DllMain( HINSTANCE inst, DWORD reason, LPVOID reserved )
         KeQueryTickCount( &count );  /* initialize the global KeTickCount */
         break;
     case DLL_PROCESS_DETACH:
+        if (reserved) break;
         RtlRemoveVectoredExceptionHandler( handler );
         break;
     }




More information about the wine-cvs mailing list