mirror of
https://github.com/reactos/reactos.git
synced 2025-02-25 01:39:30 +00:00
[NTDLL]
- use the edx register to store the function pointer to the syscall trampoline. This is how google Chrome checks if an exported function is a system call or not. See https://chromium.googlesource.com/chromium/src.git/+/master/sandbox/win/src/service_resolver_32.cc and https://bugs.winehq.org/show_bug.cgi?id=21232 for details svn path=/trunk/; revision=66161
This commit is contained in:
parent
667174effd
commit
f8de863698
1 changed files with 109 additions and 109 deletions
|
@ -6,8 +6,8 @@ MACRO(STUBCODE_U, Name, SyscallId, ArgCount)
|
|||
StackBytes = 4 * ArgCount
|
||||
FPO 0, 0, 0, 0, 0, FRAME_FPO
|
||||
mov eax, SyscallId
|
||||
mov ecx, KUSER_SHARED_SYSCALL
|
||||
call dword ptr [ecx]
|
||||
mov edx, KUSER_SHARED_SYSCALL
|
||||
call dword ptr [edx]
|
||||
ret StackBytes
|
||||
ENDM
|
||||
MACRO(STUBCODE_K, Name, SyscallId, ArgCount)
|
||||
|
|
Loading…
Reference in a new issue