fix findprocess obdereference
This commit is contained in:
@@ -68,7 +68,7 @@ namespace mouse_keybord_hook
|
|||||||
}
|
}
|
||||||
|
|
||||||
kernel_function::ke_unstack_detach_process(apc_state);
|
kernel_function::ke_unstack_detach_process(apc_state);
|
||||||
|
ObDereferenceObject(_eprocess_process);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -83,6 +83,7 @@ namespace mouse_keybord_hook
|
|||||||
inline_hooks_manager::fn_get_instance()->inline_remov_hook((void**)_ntSendInput);
|
inline_hooks_manager::fn_get_instance()->inline_remov_hook((void**)_ntSendInput);
|
||||||
|
|
||||||
kernel_function::ke_unstack_detach_process(apc_state);
|
kernel_function::ke_unstack_detach_process(apc_state);
|
||||||
|
ObDereferenceObject(_eprocess_process);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user