From aed5ce665690a11696608b886e636d683f45ebc2 Mon Sep 17 00:00:00 2001 From: Chris Denton Date: Fri, 21 Oct 2022 18:24:46 +0100 Subject: [PATCH] add GetFileType stub --- src/shims/windows/foreign_items.rs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/shims/windows/foreign_items.rs b/src/shims/windows/foreign_items.rs index fa8eaaed58..184ba997fc 100644 --- a/src/shims/windows/foreign_items.rs +++ b/src/shims/windows/foreign_items.rs @@ -425,6 +425,13 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> { // Just make it fail. this.write_null(dest)?; } + "GetFileType" if this.frame_in_std() => { + #[allow(non_snake_case)] + let [_hFile] = + this.check_shim(abi, Abi::System { unwind: false }, link_name, args)?; + // Return unknown file type. + this.write_null(dest)?; + } "AddVectoredExceptionHandler" if this.frame_in_std() => { #[allow(non_snake_case)] let [_First, _Handler] =