browseui: Use the global HeapAlloc() wrappers.

Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Michael Stefaniuc 2018-01-29 22:50:42 +01:00 committed by Alexandre Julliard
parent 30d41b2289
commit b48aef8a9e
6 changed files with 5 additions and 21 deletions

View File

@ -36,6 +36,7 @@
#include "shlguid.h"
#include "shlobj.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "browseui.h"

View File

@ -36,6 +36,7 @@
#include "shlguid.h"
#include "shlobj.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "browseui.h"

View File

@ -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 */

View File

@ -34,6 +34,7 @@
#include "shlguid.h"
#include "rpcproxy.h"
#include "wine/heap.h"
#include "browseui.h"
#include "initguid.h"

View File

@ -36,6 +36,7 @@
#include "shlguid.h"
#include "shlobj.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "browseui.h"

View File

@ -36,6 +36,7 @@
#include "shlguid.h"
#include "shlobj.h"
#include "wine/heap.h"
#include "wine/unicode.h"
#include "browseui.h"