Skip to content

Commit 571b4cb

Browse files
committed
Miri: Add CreateWaitableTimerEx stub
This function will always fail, allowing std's `Sleep` fallback path to be taken instead.
1 parent 9ac43c5 commit 571b4cb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

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

+6
Original file line numberDiff line numberDiff line change
@@ -267,6 +267,12 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
267267

268268
this.Sleep(timeout)?;
269269
}
270+
"CreateWaitableTimerExW" => {
271+
let [_attributes, _name, _flags, _access] =
272+
this.check_shim(abi, Abi::System { unwind: false }, link_name, args)?;
273+
// Unimplemented. Always return failure.
274+
this.write_null(dest)?;
275+
}
270276

271277
// Synchronization primitives
272278
"AcquireSRWLockExclusive" => {

0 commit comments

Comments
 (0)