Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-cw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-cw
Commits
18dbaadf
Commit
18dbaadf
authored
May 07, 2010
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernel32: Define GetProcessHeap as an assembler function on i386.
parent
56d28f7d
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
14 additions
and
9 deletions
+14
-9
heap.c
dlls/kernel32/heap.c
+0
-9
thread.c
dlls/kernel32/thread.c
+14
-0
No files found.
dlls/kernel32/heap.c
View file @
18dbaadf
...
...
@@ -249,15 +249,6 @@ BOOL WINAPI HeapUnlock(
/***********************************************************************
* GetProcessHeap (KERNEL32.@)
*/
HANDLE
WINAPI
GetProcessHeap
(
void
)
{
return
NtCurrentTeb
()
->
Peb
->
ProcessHeap
;
}
/***********************************************************************
* GetProcessHeaps (KERNEL32.@)
*/
DWORD
WINAPI
GetProcessHeaps
(
DWORD
count
,
HANDLE
*
heaps
)
...
...
dlls/kernel32/thread.c
View file @
18dbaadf
...
...
@@ -596,6 +596,12 @@ __ASM_STDCALL_FUNC( GetCurrentProcessId, 0, ".byte 0x64\n\tmovl 0x20,%eax\n\tret
/* DWORD WINAPI GetCurrentThreadId(void) */
__ASM_STDCALL_FUNC
(
GetCurrentThreadId
,
0
,
".byte 0x64
\n\t
movl 0x24,%eax
\n\t
ret"
)
/***********************************************************************
* GetProcessHeap (KERNEL32.@)
*/
/* HANDLE WINAPI GetProcessHeap(void) */
__ASM_STDCALL_FUNC
(
GetProcessHeap
,
0
,
".byte 0x64
\n\t
movl 0x30,%eax
\n\t
movl 0x18(%eax),%eax
\n\t
ret"
);
#else
/* __i386__ */
/**********************************************************************
...
...
@@ -650,6 +656,14 @@ DWORD WINAPI GetCurrentThreadId(void)
return
HandleToULong
(
NtCurrentTeb
()
->
ClientId
.
UniqueThread
);
}
/***********************************************************************
* GetProcessHeap (KERNEL32.@)
*/
HANDLE
WINAPI
GetProcessHeap
(
void
)
{
return
NtCurrentTeb
()
->
Peb
->
ProcessHeap
;
}
#endif
/* __i386__ */
/*************************************************************************
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment