File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/tools/miri/src/shims/windows Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -238,8 +238,8 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
238
238
// Of course we cannot use `windows_check_buffer_size` here since this uses
239
239
// a different method for dealing with a too-small buffer than the other functions...
240
240
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> .
243
243
this. write_scalar ( Scalar :: from_u32 ( len. try_into ( ) . unwrap ( ) ) , & size) ?;
244
244
if success {
245
245
Scalar :: from_i32 ( 1 ) // return TRUE
You can’t perform that action at this time.
0 commit comments