Skip to content

Commit ed66a62

Browse files
committed
Auto merge of #2612 - ChrisDenton:getfiletype, r=RalfJung
add GetFileType stub because I'm planning to break miri again rust-lang/rust#103360 See [GetFileType](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfiletype)
2 parents c988e0f + aed5ce6 commit ed66a62

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/shims/windows/foreign_items.rs

+7
Original file line numberDiff line numberDiff line change
@@ -425,6 +425,13 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
425425
// Just make it fail.
426426
this.write_null(dest)?;
427427
}
428+
"GetFileType" if this.frame_in_std() => {
429+
#[allow(non_snake_case)]
430+
let [_hFile] =
431+
this.check_shim(abi, Abi::System { unwind: false }, link_name, args)?;
432+
// Return unknown file type.
433+
this.write_null(dest)?;
434+
}
428435
"AddVectoredExceptionHandler" if this.frame_in_std() => {
429436
#[allow(non_snake_case)]
430437
let [_First, _Handler] =

0 commit comments

Comments
 (0)