Skip to content

Commit 26e9172

Browse files
authored
Merge pull request rust-lang#4334 from RalfJung/GetUserProfileDirectoryW-issue
GetUserProfileDirectoryW: reference issue regarding implementation details we rely on
2 parents 8d46118 + 758b799 commit 26e9172

File tree

1 file changed

+2
-2
lines changed
  • src/tools/miri/src/shims/windows

1 file changed

+2
-2
lines changed

src/tools/miri/src/shims/windows/env.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -238,8 +238,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
238238
// Of course we cannot use `windows_check_buffer_size` here since this uses
239239
// a different method for dealing with a too-small buffer than the other functions...
240240
let (success, len) = this.write_path_to_wide_str(home, buf, size_avail.into())?;
241-
// The Windows docs just say that this is written on failure. But std
242-
// seems to rely on it always being written.
241+
// The Windows docs just say that this is written on failure, but std relies on it
242+
// always being written. Also see <https://github.com/rust-lang/rust/issues/141254>.
243243
this.write_scalar(Scalar::from_u32(len.try_into().unwrap()), &size)?;
244244
if success {
245245
Scalar::from_i32(1) // return TRUE

0 commit comments

Comments
 (0)