Commit b48aef8a authored by Michael Stefaniuc's avatar Michael Stefaniuc Committed by Alexandre Julliard

browseui: Use the global HeapAlloc() wrappers.

parent 30d41b22
......@@ -36,6 +36,7 @@
#include "shlguid.h"
#include "shlobj.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "browseui.h"
......
......@@ -36,6 +36,7 @@
#include "shlguid.h"
#include "shlobj.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "browseui.h"
......
......@@ -31,25 +31,4 @@ extern HRESULT ACLShellSource_Constructor(IUnknown *punkOuter, IUnknown **ppOut)
extern const GUID CLSID_CompCatCacheDaemon;
static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
{
return HeapAlloc(GetProcessHeap(), 0, size);
}
static inline void* __WINE_ALLOC_SIZE(1) heap_alloc_zero(size_t size)
{
return HeapAlloc(GetProcessHeap(), HEAP_ZERO_MEMORY, size);
}
static inline void* __WINE_ALLOC_SIZE(2) heap_realloc(void *mem, size_t size)
{
if (!mem) return heap_alloc(size);
return HeapReAlloc(GetProcessHeap(), 0, mem, size);
}
static inline BOOL heap_free(void *mem)
{
return HeapFree(GetProcessHeap(), 0, mem);
}
#endif /* __WINE_BROWSEUI_H */
......@@ -34,6 +34,7 @@
#include "shlguid.h"
#include "rpcproxy.h"
#include "wine/heap.h"
#include "browseui.h"
#include "initguid.h"
......
......@@ -36,6 +36,7 @@
#include "shlguid.h"
#include "shlobj.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "browseui.h"
......
......@@ -36,6 +36,7 @@
#include "shlguid.h"
#include "shlobj.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "browseui.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