odbccp32: Add a __WINE_ALLOC_SIZE attribute to heap_alloc().
Francois Gouget
fgouget at free.fr
Sat Feb 18 04:21:10 CST 2017
And standardize its parameter name.
Signed-off-by: Francois Gouget <fgouget at free.fr>
---
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 bc643d46db8..f68d98f6a41 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)
--
2.11.0
More information about the wine-patches
mailing list