The RemoveVectoredExceptionHandler API takes a handle created by AddVectoredExceptionHandler as an argument and not a pointer to the handler function. This fixes a crash when the process tries to call the handler function even when the module is unloaded.
The
RemoveVectoredExceptionHandler
API takes a handle created byAddVectoredExceptionHandler
as an argument and not a pointer to the handler function. This fixes a crash when the process tries to call the handler function even when the module is unloaded.