fix windows hooks
This commit is contained in:
parent
354ec11c3e
commit
e10d83c8bb
1 changed files with 5 additions and 3 deletions
|
|
@ -634,14 +634,16 @@ impl<'a, 'mir, 'tcx: 'mir + 'a> EvalContextExt<'tcx> for EvalContext<'a, 'mir, '
|
|||
let ptr_size = self.memory.pointer_size();
|
||||
self.write_scalar(dest, Scalar::from_int(1, ptr_size), dest_ty)?;
|
||||
},
|
||||
"GetModuleHandleW" |
|
||||
"GetProcAddress" |
|
||||
"InitializeCriticalSection" |
|
||||
"EnterCriticalSection" |
|
||||
"TryEnterCriticalSection" |
|
||||
"LeaveCriticalSection" |
|
||||
"DeleteCriticalSection" |
|
||||
"SetLastError" => {
|
||||
// Function does not return anything, nothing to do
|
||||
},
|
||||
"GetModuleHandleW" |
|
||||
"GetProcAddress" |
|
||||
"TryEnterCriticalSection" => {
|
||||
// pretend these do not exist/nothing happened, by returning zero
|
||||
let ptr_size = self.memory.pointer_size();
|
||||
self.write_scalar(dest, Scalar::from_int(0, ptr_size), dest_ty)?;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue