Commit 22b22508 authored by Alexandre Julliard's avatar Alexandre Julliard

kernelbase: Redirect heap allocation functions to ntdll.

parent a3b8e944
...@@ -54,4 +54,9 @@ static inline BOOL set_ntstatus( NTSTATUS status ) ...@@ -54,4 +54,9 @@ static inline BOOL set_ntstatus( NTSTATUS status )
return !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 */ #endif /* __WINE_KERNELBASE_H */
...@@ -775,7 +775,7 @@ ...@@ -775,7 +775,7 @@
@ stdcall HeapCompact(long long) @ stdcall HeapCompact(long long)
@ stdcall HeapCreate(long long long) @ stdcall HeapCreate(long long long)
@ stdcall HeapDestroy(long) @ stdcall HeapDestroy(long)
@ stdcall HeapFree(long long ptr) @ stdcall HeapFree(long long ptr) ntdll.RtlFreeHeap
@ stdcall HeapLock(long) @ stdcall HeapLock(long)
@ stdcall HeapQueryInformation(long long ptr long ptr) @ stdcall HeapQueryInformation(long long ptr long ptr)
@ stdcall HeapReAlloc(long long ptr long) ntdll.RtlReAllocateHeap @ stdcall HeapReAlloc(long long ptr long) ntdll.RtlReAllocateHeap
......
...@@ -28,8 +28,8 @@ ...@@ -28,8 +28,8 @@
#include "winternl.h" #include "winternl.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h"
#include "kernelbase.h" #include "kernelbase.h"
#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(kernelbase); WINE_DEFAULT_DEBUG_CHANNEL(kernelbase);
......
...@@ -29,6 +29,7 @@ ...@@ -29,6 +29,7 @@
#include "intshcut.h" #include "intshcut.h"
#include "winternl.h" #include "winternl.h"
#include "kernelbase.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/heap.h" #include "wine/heap.h"
......
...@@ -24,6 +24,7 @@ ...@@ -24,6 +24,7 @@
#include "shlwapi.h" #include "shlwapi.h"
#include "winternl.h" #include "winternl.h"
#include "kernelbase.h"
#include "wine/debug.h" #include "wine/debug.h"
#include "wine/exception.h" #include "wine/exception.h"
......
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