Skip to content

Commit

Permalink
Fix a bug with the applink detector (missing trailing NULL) (#852)
Browse files Browse the repository at this point in the history
  • Loading branch information
mitsuhiko committed Mar 8, 2024
1 parent b0e9ecc commit 9484b1a
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion rye/src/cli/shim.rs
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,11 @@ fn is_pointless_windows_store_applink(path: &std::path::Path) -> bool {
return false;
}

let mut path_encoded = path.as_os_str().encode_wide().collect::<Vec<_>>();
let mut path_encoded = path
.as_os_str()
.encode_wide()
.chain(Some(0))
.collect::<Vec<_>>();
let reparse_handle = unsafe {
CreateFileW(
path_encoded.as_mut_ptr(),
Expand Down

0 comments on commit 9484b1a

Please sign in to comment.