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

This commit is contained in:
Alexandre Julliard 2009-01-30 11:44:13 +01:00
parent 868f63935c
commit 13ff441aea
1 changed files with 3 additions and 0 deletions

View File

@ -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;
}