Use dosdevices instead of always in the c_drive. (#296)

This commit is contained in:
vkbsb
2022-12-30 19:36:01 +01:00
committed by GitHub
parent 90c0185c8f
commit b1e8c56f4b
+4 -2
View File
@@ -70,7 +70,8 @@ fn get_manifest_item(dir_entry: DirEntry, _path: Option<PathBuf>) -> Option<Mani
//Strip off the c:\\ //Strip off the c:\\
item.manifest_location = compat_folder item.manifest_location = compat_folder
.join("pfx") .join("pfx")
.join("drive_c") .join("dosdevices")
.join(&item.manifest_location[0..2].to_lowercase())
.join(&item.manifest_location[3..].replace('\\', "/")) .join(&item.manifest_location[3..].replace('\\', "/"))
.to_path_buf() .to_path_buf()
.to_string_lossy() .to_string_lossy()
@@ -78,7 +79,8 @@ fn get_manifest_item(dir_entry: DirEntry, _path: Option<PathBuf>) -> Option<Mani
item.install_location = compat_folder item.install_location = compat_folder
.join("pfx") .join("pfx")
.join("drive_c") .join("dosdevices")
.join(&item.install_location[0..2].to_lowercase())
.join(&item.install_location[3..].replace('\\', "/")) .join(&item.install_location[3..].replace('\\', "/"))
.to_path_buf() .to_path_buf()
.to_string_lossy() .to_string_lossy()