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
22b22508
Commit
22b22508
authored
Dec 11, 2019
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
kernelbase: Redirect heap allocation functions to ntdll.
Signed-off-by:
Alexandre Julliard
<
julliard@winehq.org
>
parent
a3b8e944
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
9 additions
and
2 deletions
+9
-2
kernelbase.h
dlls/kernelbase/kernelbase.h
+5
-0
kernelbase.spec
dlls/kernelbase/kernelbase.spec
+1
-1
main.c
dlls/kernelbase/main.c
+1
-1
path.c
dlls/kernelbase/path.c
+1
-0
string.c
dlls/kernelbase/string.c
+1
-0
No files found.
dlls/kernelbase/kernelbase.h
View file @
22b22508
...
...
@@ -54,4 +54,9 @@ static inline BOOL set_ntstatus( NTSTATUS status )
return
!
status
;
}
/* make the kernel32 names available */
#define HeapAlloc(heap, flags, size) RtlAllocateHeap(heap, flags, size)
#define HeapReAlloc(heap, flags, ptr, size) RtlReAllocateHeap(heap, flags, ptr, size)
#define HeapFree(heap, flags, ptr) RtlFreeHeap(heap, flags, ptr)
#endif
/* __WINE_KERNELBASE_H */
dlls/kernelbase/kernelbase.spec
View file @
22b22508
...
...
@@ -775,7 +775,7 @@
@ stdcall HeapCompact(long long)
@ stdcall HeapCreate(long long long)
@ stdcall HeapDestroy(long)
@ stdcall HeapFree(long long ptr)
@ stdcall HeapFree(long long ptr)
ntdll.RtlFreeHeap
@ stdcall HeapLock(long)
@ stdcall HeapQueryInformation(long long ptr long ptr)
@ stdcall HeapReAlloc(long long ptr long) ntdll.RtlReAllocateHeap
...
...
dlls/kernelbase/main.c
View file @
22b22508
...
...
@@ -28,8 +28,8 @@
#include "winternl.h"
#include "wine/debug.h"
#include "wine/heap.h"
#include "kernelbase.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL
(
kernelbase
);
...
...
dlls/kernelbase/path.c
View file @
22b22508
...
...
@@ -29,6 +29,7 @@
#include "intshcut.h"
#include "winternl.h"
#include "kernelbase.h"
#include "wine/debug.h"
#include "wine/heap.h"
...
...
dlls/kernelbase/string.c
View file @
22b22508
...
...
@@ -24,6 +24,7 @@
#include "shlwapi.h"
#include "winternl.h"
#include "kernelbase.h"
#include "wine/debug.h"
#include "wine/exception.h"
...
...
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