Skip to content

Commit 7c83af8

Browse files
author
The Miri Conjob Bot
committed
Merge from rustc
2 parents a657abb + 9560da0 commit 7c83af8

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

src/shims/windows/foreign_items.rs

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

273273
this.Sleep(timeout)?;
274274
}
275+
"CreateWaitableTimerExW" => {
276+
let [attributes, name, flags, access] =
277+
this.check_shim(abi, Abi::System { unwind: false }, link_name, args)?;
278+
this.read_pointer(attributes)?;
279+
this.read_pointer(name)?;
280+
this.read_scalar(flags)?.to_u32()?;
281+
this.read_scalar(access)?.to_u32()?;
282+
// Unimplemented. Always return failure.
283+
let not_supported = this.eval_windows("c", "ERROR_NOT_SUPPORTED");
284+
this.set_last_error(not_supported)?;
285+
this.write_null(dest)?;
286+
}
275287

276288
// Synchronization primitives
277289
"AcquireSRWLockExclusive" => {

0 commit comments

Comments
 (0)