fix: Correcting driver structure error

This commit is contained in:
joaoviictorti
2024-11-01 13:53:14 -03:00
parent 4086e87ce4
commit 9a5ed34ce1
2 changed files with 2 additions and 0 deletions

View File

@@ -8,6 +8,7 @@ use {
Foundation::{CloseHandle, GetLastError, HANDLE},
},
};
pub struct Callback {
driver_handle: HANDLE,
}

View File

@@ -26,6 +26,7 @@ impl Driver {
let mut info_driver = TargetDriver {
name: name.to_string(),
enable,
..Default::default()
};
debug!("Sending DeviceIoControl command to {} driver", if enable { "hide" } else { "unhide" });