[PATCH] odbccp32: Use the global HeapAlloc() wrappers

Michael Stefaniuc mstefani at winehq.org
Thu Feb 1 18:03:55 CST 2018


Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>
---
 dlls/odbccp32/odbccp32.c | 11 +----------
 1 file changed, 1 insertion(+), 10 deletions(-)

diff --git a/dlls/odbccp32/odbccp32.c b/dlls/odbccp32/odbccp32.c
index fce3fcd6c1..f9a2269345 100644
--- a/dlls/odbccp32/odbccp32.c
+++ b/dlls/odbccp32/odbccp32.c
@@ -31,6 +31,7 @@
 #include "winnls.h"
 #include "wine/unicode.h"
 #include "wine/debug.h"
+#include "wine/heap.h"
 
 #include "odbcinst.h"
 
@@ -84,16 +85,6 @@ static void clear_errors(void)
     num_errors = 0;
 }
 
-static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
-{
-    return HeapAlloc(GetProcessHeap(), 0, size);
-}
-
-static inline BOOL heap_free(void *mem)
-{
-    return HeapFree(GetProcessHeap(), 0, mem);
-}
-
 static inline WCHAR *heap_strdupAtoW(const char *str)
 {
     LPWSTR ret = NULL;
-- 
2.14.3




More information about the wine-devel mailing list