Auto merge of #2612 - ChrisDenton:getfiletype, r=RalfJung
add GetFileType stub because I'm planning to break miri again https://github.com/rust-lang/rust/pull/103360 See [GetFileType](https://learn.microsoft.com/en-us/windows/win32/api/fileapi/nf-fileapi-getfiletype)
This commit is contained in:
commit
fc3bcacbe7
1 changed files with 7 additions and 0 deletions
|
@ -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] =
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue