Michael Stefaniuc : scrrun: Use the global HeapAlloc() wrappers.
Alexandre Julliard
julliard at winehq.org
Mon Feb 5 16:48:25 CST 2018
Module: wine
Branch: master
Commit: 4b0b149a06e05f8f681d38bf1a7bb6fd7a7a3af9
URL: https://source.winehq.org/git/wine.git/?a=commit;h=4b0b149a06e05f8f681d38bf1a7bb6fd7a7a3af9
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Sat Feb 3 00:17:54 2018 +0100
scrrun: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/scrrun/dictionary.c | 1 +
dlls/scrrun/filesystem.c | 1 +
dlls/scrrun/scrrun_private.h | 10 ----------
3 files changed, 2 insertions(+), 10 deletions(-)
diff --git a/dlls/scrrun/dictionary.c b/dlls/scrrun/dictionary.c
index 7ebf4a4..681274e 100644
--- a/dlls/scrrun/dictionary.c
+++ b/dlls/scrrun/dictionary.c
@@ -33,6 +33,7 @@
#include "wine/debug.h"
#include "wine/unicode.h"
+#include "wine/heap.h"
#include "wine/list.h"
WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
diff --git a/dlls/scrrun/filesystem.c b/dlls/scrrun/filesystem.c
index 2acef84..228a5e9 100644
--- a/dlls/scrrun/filesystem.c
+++ b/dlls/scrrun/filesystem.c
@@ -33,6 +33,7 @@
#include "wine/debug.h"
#include "wine/unicode.h"
+#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(scrrun);
diff --git a/dlls/scrrun/scrrun_private.h b/dlls/scrrun/scrrun_private.h
index 3312876..5083d30 100644
--- a/dlls/scrrun/scrrun_private.h
+++ b/dlls/scrrun/scrrun_private.h
@@ -46,14 +46,4 @@ struct provideclassinfo {
extern void init_classinfo(const GUID *guid, IUnknown *outer, struct provideclassinfo *classinfo) DECLSPEC_HIDDEN;
-static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t len)
-{
- return HeapAlloc(GetProcessHeap(), 0, len);
-}
-
-static inline BOOL heap_free(void *mem)
-{
- return HeapFree(GetProcessHeap(), 0, mem);
-}
-
#endif
More information about the wine-cvs
mailing list