fix driver file name path

This commit is contained in:
nganhkhoa 2020-02-25 01:33:16 +07:00
parent 2ee77d16c7
commit 0ca87a871c

View File

@ -163,7 +163,7 @@ impl WindowsFFI {
(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 filename = CString::new("\\Device\\poolscanner").unwrap();
let filename = CString::new("\\\\.\\poolscanner").unwrap();
let driver_file_handle: HANDLE = unsafe {
CreateFileA(filename.as_ptr(),
GENERIC_READ | GENERIC_WRITE,