Fix NtpGetHeapProcess for Win64 system

git-svn-id: trunk@33013 -
This commit is contained in:
pierre 2016-01-28 15:06:39 +00:00
parent 1e5883b6d1
commit 9881125ba1

View File

@ -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;