Commit 18dbaadf authored by Alexandre Julliard's avatar Alexandre Julliard

kernel32: Define GetProcessHeap as an assembler function on i386.

parent 56d28f7d
...@@ -249,15 +249,6 @@ BOOL WINAPI HeapUnlock( ...@@ -249,15 +249,6 @@ BOOL WINAPI HeapUnlock(
/*********************************************************************** /***********************************************************************
* GetProcessHeap (KERNEL32.@)
*/
HANDLE WINAPI GetProcessHeap(void)
{
return NtCurrentTeb()->Peb->ProcessHeap;
}
/***********************************************************************
* GetProcessHeaps (KERNEL32.@) * GetProcessHeaps (KERNEL32.@)
*/ */
DWORD WINAPI GetProcessHeaps( DWORD count, HANDLE *heaps ) DWORD WINAPI GetProcessHeaps( DWORD count, HANDLE *heaps )
......
...@@ -596,6 +596,12 @@ __ASM_STDCALL_FUNC( GetCurrentProcessId, 0, ".byte 0x64\n\tmovl 0x20,%eax\n\tret ...@@ -596,6 +596,12 @@ __ASM_STDCALL_FUNC( GetCurrentProcessId, 0, ".byte 0x64\n\tmovl 0x20,%eax\n\tret
/* DWORD WINAPI GetCurrentThreadId(void) */ /* DWORD WINAPI GetCurrentThreadId(void) */
__ASM_STDCALL_FUNC( GetCurrentThreadId, 0, ".byte 0x64\n\tmovl 0x24,%eax\n\tret" ) __ASM_STDCALL_FUNC( GetCurrentThreadId, 0, ".byte 0x64\n\tmovl 0x24,%eax\n\tret" )
/***********************************************************************
* GetProcessHeap (KERNEL32.@)
*/
/* HANDLE WINAPI GetProcessHeap(void) */
__ASM_STDCALL_FUNC( GetProcessHeap, 0, ".byte 0x64\n\tmovl 0x30,%eax\n\tmovl 0x18(%eax),%eax\n\tret");
#else /* __i386__ */ #else /* __i386__ */
/********************************************************************** /**********************************************************************
...@@ -650,6 +656,14 @@ DWORD WINAPI GetCurrentThreadId(void) ...@@ -650,6 +656,14 @@ DWORD WINAPI GetCurrentThreadId(void)
return HandleToULong(NtCurrentTeb()->ClientId.UniqueThread); return HandleToULong(NtCurrentTeb()->ClientId.UniqueThread);
} }
/***********************************************************************
* GetProcessHeap (KERNEL32.@)
*/
HANDLE WINAPI GetProcessHeap(void)
{
return NtCurrentTeb()->Peb->ProcessHeap;
}
#endif /* __i386__ */ #endif /* __i386__ */
/************************************************************************* /*************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment