fix driver file name path
This commit is contained in:
parent
2ee77d16c7
commit
0ca87a871c
@ -163,7 +163,7 @@ impl WindowsFFI {
|
|||||||
(self.rtl_init_unicode_str)(&mut str_driver_reg_unicode, str_driver_reg.as_ptr() as *const u16);
|
(self.rtl_init_unicode_str)(&mut str_driver_reg_unicode, str_driver_reg.as_ptr() as *const u16);
|
||||||
let status = (self.nt_load_driver)(&mut str_driver_reg_unicode);
|
let status = (self.nt_load_driver)(&mut str_driver_reg_unicode);
|
||||||
|
|
||||||
let filename = CString::new("\\Device\\poolscanner").unwrap();
|
let filename = CString::new("\\\\.\\poolscanner").unwrap();
|
||||||
let driver_file_handle: HANDLE = unsafe {
|
let driver_file_handle: HANDLE = unsafe {
|
||||||
CreateFileA(filename.as_ptr(),
|
CreateFileA(filename.as_ptr(),
|
||||||
GENERIC_READ | GENERIC_WRITE,
|
GENERIC_READ | GENERIC_WRITE,
|
||||||
|
Loading…
Reference in New Issue
Block a user