Remove root from patched UNC windows path drives

This commit is contained in:
mataha 2023-05-13 18:38:12 +02:00 committed by GitHub
parent db8f39ce19
commit 9fff960636
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -246,7 +246,7 @@ fn patch_path_prefix(path: PathBuf) -> PathBuf {
format!("{}:", d.to_ascii_uppercase() as char)
}
Prefix::VerbatimDisk(d) => {
format!(r"\\?\{}:\", d.to_ascii_uppercase() as char)
format!(r"\\?\{}:", d.to_ascii_uppercase() as char)
}
_ => return path,
};