Skip to content

Commit

Permalink
Fix Windows compile error.
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturKovacs committed Jul 13, 2019
1 parent f033dc3 commit 15e801e
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/windows.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,9 @@ where
.map_err(|e| Error::CanonicalizePath {
code: e.raw_os_error(),
})?;
let mut from = OsString::new();
let mut wide_paths = Vec::with_capacity(full_paths.len());
for path in full_paths.iter() {
let mut os_string = OsString::from(canonical);
let mut os_string = OsString::from(path);
os_string.push("\0");
let mut encode_wide = os_string.as_os_str().encode_wide();
// Remove the "\\?\" prefix as `SHFileOperationW` fails if such a prefix is part of the path.
Expand Down

0 comments on commit 15e801e

Please sign in to comment.