Skip to content

Commit 590834b

Browse files
committed
add GetFileType stub
1 parent 6504d2e commit 590834b

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
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)