Skip to content

Commit f401245

Browse files
committed
use TRUE/FALSE constants for return value
1 parent c8614a8 commit f401245

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
@@ -433,7 +433,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
433433

434434
let error_timeout = this.eval_windows("c", "ERROR_TIMEOUT")?;
435435
this.set_last_error(error_timeout)?;
436-
this.write_scalar(Scalar::from_i32(0), &self.dest)?;
436+
this.write_scalar(this.eval_windows("c", "FALSE")?, &self.dest)?;
437437
Ok(())
438438
}
439439
}
@@ -451,7 +451,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
451451
);
452452
}
453453

454-
Ok(Scalar::from_i32(1))
454+
this.eval_windows("c", "TRUE")
455455
}
456456

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

0 commit comments

Comments
 (0)