Francois Gouget : odbccp32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
Alexandre Julliard
julliard at winehq.org
Mon Feb 20 15:03:43 CST 2017
Module: wine
Branch: master
Commit: 65b6cf186d3ea221db936abf504796b38bcc3037
URL: http://source.winehq.org/git/wine.git/?a=commit;h=65b6cf186d3ea221db936abf504796b38bcc3037
Author: Francois Gouget <fgouget at free.fr>
Date: Sat Feb 18 11:21:10 2017 +0100
odbccp32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
And standardize its parameter name.
Signed-off-by: Francois Gouget <fgouget at free.fr>
Signed-off-by: Alistair Leslie-Hughes <leslie_alistair at hotmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
---
dlls/odbccp32/odbccp32.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/odbccp32/odbccp32.c b/dlls/odbccp32/odbccp32.c
index bc643d4..f68d98f 100644
--- a/dlls/odbccp32/odbccp32.c
+++ b/dlls/odbccp32/odbccp32.c
@@ -76,9 +76,9 @@ static void clear_errors(void)
num_errors = 0;
}
-static inline void * heap_alloc(size_t len)
+static inline void* __WINE_ALLOC_SIZE(1) heap_alloc(size_t size)
{
- return HeapAlloc(GetProcessHeap(), 0, len);
+ return HeapAlloc(GetProcessHeap(), 0, size);
}
static inline BOOL heap_free(void *mem)
More information about the wine-cvs
mailing list