Skip to content

Commit c72ff6a

Browse files
committed
use TRUE/FALSE constants for return value
1 parent 10d7b62 commit c72ff6a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/shims/windows/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
431431

432432
let error_timeout = this.eval_windows("c", "ERROR_TIMEOUT")?;
433433
this.set_last_error(error_timeout)?;
434-
this.write_scalar(Scalar::from_i32(0), &self.dest)?;
434+
this.write_scalar(this.eval_windows("c", "FALSE")?, &self.dest)?;
435435
Ok(())
436436
}
437437
}
@@ -449,7 +449,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
449449
);
450450
}
451451

452-
Ok(Scalar::from_i32(1))
452+
this.eval_windows("c", "TRUE")
453453
}
454454

455455
fn WakeConditionVariable(&mut self, condvar_op: &OpTy<'tcx, Provenance>) -> InterpResult<'tcx> {

0 commit comments

Comments
 (0)