We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75e8284 commit b508a0eCopy full SHA for b508a0e
src/shims/windows/fs.rs
@@ -162,6 +162,7 @@ pub trait EvalContextExt<'tcx>: crate::MiriInterpCxExt<'tcx> {
162
let this = self.eval_context_mut();
163
this.assert_target_os("windows", "CreateFileW");
164
this.check_no_isolation("`CreateFileW`")?;
165
+ this.set_last_error(IoError::Raw(Scalar::from_i32(0)))?;
166
167
let file_name = this.read_path_from_wide_str(this.read_pointer(file_name)?)?;
168
let mut desired_access = this.read_scalar(desired_access)?.to_u32()?;
0 commit comments