Fixed GetProcessHeap() for the STRICT mode.

This commit is contained in:
Francois Gouget 2000-04-23 19:54:42 +00:00 committed by Alexandre Julliard
parent dfee49e3ed
commit 32ef5a184b

View file

@ -1841,9 +1841,9 @@ extern inline void WINAPI SetLastError( DWORD err )
extern inline HANDLE WINAPI GetProcessHeap(void);
extern inline HANDLE WINAPI GetProcessHeap(void)
{
DWORD *pdb;
HANDLE *pdb;
__asm__ __volatile__( ".byte 0x64\n\tmovl 0x30,%0" : "=r" (pdb) );
return pdb[0x18 / sizeof(DWORD)]; /* get dword at offset 0x18 in pdb */
return pdb[0x18 / sizeof(HANDLE)]; /* get dword at offset 0x18 in pdb */
}
#else /* __i386__ && __GNUC__ */