From 0ca87a871c9a2dee7fd47510b7e02ab93fd8b095 Mon Sep 17 00:00:00 2001 From: nganhkhoa Date: Tue, 25 Feb 2020 01:33:16 +0700 Subject: [PATCH] fix driver file name path --- src/windows.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/windows.rs b/src/windows.rs index a009ecd..30496f6 100644 --- a/src/windows.rs +++ b/src/windows.rs @@ -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,