[PATCH] includes: Fix GetProcessHeap for win64

Maarten Lankhorst m.b.lankhorst at gmail.com
Sat Dec 13 17:39:26 CST 2008


---
 include/winbase.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/winbase.h b/include/winbase.h
index 088c985..8c25387 100644
--- a/include/winbase.h
+++ b/include/winbase.h
@@ -2513,7 +2513,7 @@ extern inline HANDLE WINAPI GetProcessHeap(void)
 {
     HANDLE *pdb;
 #ifdef __x86_64__
-    __asm__ __volatile__( ".byte 0x64\n\tmovq 0x60,%0" : "=r" (pdb) );
+    __asm__ __volatile__( ".byte 0x65\n\tmovq 0x60,%0" : "=r" (pdb) );
     return pdb[0x30 / sizeof(HANDLE)];  /* get dword at offset 0x30 in pdb */
 #else
     __asm__ __volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb) );
-- 
1.5.6.5


--------------040807030603080603060204--



More information about the wine-patches mailing list