kernel32: Define GetProcessHeap as an assembler function on i386.
This commit is contained in:
parent
56d28f7d5b
commit
18dbaadfc5
|
@ -248,15 +248,6 @@ BOOL WINAPI HeapUnlock(
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
|
||||||
* GetProcessHeap (KERNEL32.@)
|
|
||||||
*/
|
|
||||||
HANDLE WINAPI GetProcessHeap(void)
|
|
||||||
{
|
|
||||||
return NtCurrentTeb()->Peb->ProcessHeap;
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
/***********************************************************************
|
/***********************************************************************
|
||||||
* GetProcessHeaps (KERNEL32.@)
|
* GetProcessHeaps (KERNEL32.@)
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -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)
|
||||||
return HandleToULong(NtCurrentTeb()->ClientId.UniqueThread);
|
return HandleToULong(NtCurrentTeb()->ClientId.UniqueThread);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/***********************************************************************
|
||||||
|
* GetProcessHeap (KERNEL32.@)
|
||||||
|
*/
|
||||||
|
HANDLE WINAPI GetProcessHeap(void)
|
||||||
|
{
|
||||||
|
return NtCurrentTeb()->Peb->ProcessHeap;
|
||||||
|
}
|
||||||
|
|
||||||
#endif /* __i386__ */
|
#endif /* __i386__ */
|
||||||
|
|
||||||
/*************************************************************************
|
/*************************************************************************
|
||||||
|
|
Loading…
Reference in New Issue