Check argument count for CreateThread
This commit is contained in:
parent
89c722ac32
commit
d1e72d0854
@ -342,11 +342,8 @@ fn emulate_foreign_item_by_name(
|
||||
|
||||
// Better error for attempts to create a thread
|
||||
"CreateThread" => {
|
||||
this.check_abi_and_shim_symbol_clash(
|
||||
abi,
|
||||
Abi::System { unwind: false },
|
||||
link_name_sym,
|
||||
)?;
|
||||
let &[_, _, _, _, _, _] =
|
||||
this.check_shim(abi, Abi::System { unwind: false }, link_name_sym, args)?;
|
||||
|
||||
this.handle_unsupported("can't create threads on Windows")?;
|
||||
return Ok(EmulateByNameResult::AlreadyJumped);
|
||||
|
Loading…
Reference in New Issue
Block a user