mirror of
https://github.com/obhq/obliteration.git
synced 2025-02-17 01:49:34 +00:00
Add path specification for Windows Root (#754)
This commit is contained in:
parent
1aecdffa61
commit
c969c822b0
@ -49,7 +49,8 @@ impl HostFile {
|
||||
use windows_sys::Win32::System::Kernel::OBJ_CASE_INSENSITIVE;
|
||||
|
||||
// Encode path name.
|
||||
let path = path.as_ref();
|
||||
let path_spec = format!("\\??\\{}", path.as_ref().to_str().unwrap());
|
||||
let path = std::path::PathBuf::from(path_spec);
|
||||
let mut path: Vec<u16> = path.as_os_str().encode_wide().collect();
|
||||
let len: u16 = (path.len() * 2).try_into().unwrap();
|
||||
let mut path = UNICODE_STRING {
|
||||
|
Loading…
x
Reference in New Issue
Block a user