Michael Stefaniuc : spoolss: Use the global HeapAlloc() wrappers.
Alexandre Julliard
julliard at winehq.org
Mon Feb 5 16:48:26 CST 2018
Module: wine
Branch: master
Commit: 8d3b7e943b4b3ee83d696cfffb09cbec9914ba1f
URL: https://source.winehq.org/git/wine.git/?a=commit;h=8d3b7e943b4b3ee83d696cfffb09cbec9914ba1f
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Sat Feb 3 00:17:58 2018 +0100
spoolss: Use the global HeapAlloc() wrappers.
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
Signed-off-by: Huw Davies <huw at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/spoolss/router.c | 1 +
dlls/spoolss/spoolss.h | 17 -----------------
2 files changed, 1 insertion(+), 17 deletions(-)
diff --git a/dlls/spoolss/router.c b/dlls/spoolss/router.c
index 3d239b4..764721b 100644
--- a/dlls/spoolss/router.c
+++ b/dlls/spoolss/router.c
@@ -31,6 +31,7 @@
#include "spoolss.h"
#include "wine/debug.h"
+#include "wine/heap.h"
WINE_DEFAULT_DEBUG_CHANNEL(spoolss);
diff --git a/dlls/spoolss/spoolss.h b/dlls/spoolss/spoolss.h
index 67b3891..b4a8853 100644
--- a/dlls/spoolss/spoolss.h
+++ b/dlls/spoolss/spoolss.h
@@ -23,20 +23,3 @@
BOOL backend_load_all(void) DECLSPEC_HIDDEN;
void backend_unload_all(void) DECLSPEC_HIDDEN;
-
-/* ## Memory allocation functions ## */
-
-static inline void * __WINE_ALLOC_SIZE(1) heap_alloc( size_t len )
-{
- return HeapAlloc( GetProcessHeap(), 0, len );
-}
-
-static inline void * __WINE_ALLOC_SIZE(1) heap_alloc_zero( size_t len )
-{
- return HeapAlloc( GetProcessHeap(), HEAP_ZERO_MEMORY, len );
-}
-
-static inline BOOL heap_free( void *mem )
-{
- return HeapFree( GetProcessHeap(), 0, mem );
-}
More information about the wine-cvs
mailing list