Michael Stefaniuc : riched20: Use the global HeapAlloc() wrappers.
Alexandre Julliard
julliard at winehq.org
Mon Feb 5 16:48:26 CST 2018
Module: wine
Branch: master
Commit: f9016830a67ec9258a48b17d83e55d99c8068a99
URL: https://source.winehq.org/git/wine.git/?a=commit;h=f9016830a67ec9258a48b17d83e55d99c8068a99
Author: Michael Stefaniuc <mstefani at winehq.org>
Date: Sat Feb 3 23:59:45 2018 +0100
riched20: 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/riched20/editor.h | 15 ---------------
dlls/riched20/editstr.h | 1 +
2 files changed, 1 insertion(+), 15 deletions(-)
diff --git a/dlls/riched20/editor.h b/dlls/riched20/editor.h
index aba3026..7d4a8ef 100644
--- a/dlls/riched20/editor.h
+++ b/dlls/riched20/editor.h
@@ -25,21 +25,6 @@ struct _RTF_Info;
extern HANDLE me_heap DECLSPEC_HIDDEN;
-static inline void * __WINE_ALLOC_SIZE(1) heap_alloc( size_t len )
-{
- return HeapAlloc( me_heap, 0, len );
-}
-
-static inline BOOL heap_free( void *ptr )
-{
- return HeapFree( me_heap, 0, ptr );
-}
-
-static inline void * __WINE_ALLOC_SIZE(2) heap_realloc( void *ptr, size_t len )
-{
- return HeapReAlloc( me_heap, 0, ptr, len );
-}
-
#define ALLOC_OBJ(type) heap_alloc(sizeof(type))
#define ALLOC_N_OBJ(type, count) heap_alloc((count)*sizeof(type))
#define FREE_OBJ(ptr) heap_free(ptr)
diff --git a/dlls/riched20/editstr.h b/dlls/riched20/editstr.h
index 2bf680e..a37c4de 100644
--- a/dlls/riched20/editstr.h
+++ b/dlls/riched20/editstr.h
@@ -48,6 +48,7 @@
#include "usp10.h"
#include "wine/debug.h"
+#include "wine/heap.h"
#include "wine/list.h"
#ifdef __i386__
More information about the wine-cvs
mailing list