Commit 13ff441a authored by Alexandre Julliard's avatar Alexandre Julliard

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

parent 868f6393
......@@ -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;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment