mirror of
https://gitlab.com/freepascal.org/fpc/source.git
synced 2025-08-19 05:49:20 +02:00
Fix NtpGetHeapProcess for Win64 system
git-svn-id: trunk@33013 -
This commit is contained in:
parent
1e5883b6d1
commit
9881125ba1
@ -8310,9 +8310,9 @@ asm
|
||||
mov EAX, DWORD PTR [EAX+018h] // PEB+$30 holds the ProcessHeap's handle
|
||||
{$endif}
|
||||
{$ifdef cpux86_64}
|
||||
mov RAX, GS:[48] // EAX now holds the TEB address
|
||||
mov RAX, [RAX+060h] // TEB+$30 holds the PEB address
|
||||
mov RAX, DWORD PTR [RAX+48] // PEB+$30 holds the ProcessHeap's handle
|
||||
mov RAX, GS:[030h] // EAX now holds the TEB address
|
||||
mov RAX, [RAX+060h] // TEB+$60 holds the PEB address
|
||||
mov RAX, QWORD PTR [RAX+030h] // PEB+$30 holds the ProcessHeap's handle
|
||||
{$endif cpux86_64}
|
||||
end;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user