ignore return of NtResumeProcess in empty_session::deactivate to reduce crashing
This commit is contained in:
@@ -76,6 +76,7 @@ pub fn activate(game_handle: &mut HANDLE, system_info: &mut SystemInfo) -> Resul
|
||||
|
||||
pub fn deactivate(game_handle: &mut HANDLE) {
|
||||
if !game_handle.is_invalid() {
|
||||
unsafe { NtResumeProcess(*game_handle) }.unwrap();
|
||||
// ignoring the return because this function behaves very weirdly
|
||||
let _ = unsafe { NtResumeProcess(*game_handle) };
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user