mirror of
git://source.winehq.org/git/wine.git
synced 2024-09-02 00:03:38 +00:00
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:
parent
30d41b2289
commit
b48aef8a9e
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue