Michael Stefaniuc : comctl32: Replace malloc() with HeapAlloc().
Alexandre Julliard
julliard at wine.codeweavers.com
Fri Jun 29 08:14:34 CDT 2007
Module: wine
Branch: master
Commit: ff01912a484f0907b9562d5bf93569144ba4a72c
URL: http://source.winehq.org/git/wine.git/?a=commit;h=ff01912a484f0907b9562d5bf93569144ba4a72c
Author: Michael Stefaniuc <mstefani at redhat.de>
Date: Thu Jun 28 23:00:54 2007 +0200
comctl32: Replace malloc() with HeapAlloc().
---
dlls/comctl32/tests/comboex.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/dlls/comctl32/tests/comboex.c b/dlls/comctl32/tests/comboex.c
index 8943d82..f4d8fc8 100644
--- a/dlls/comctl32/tests/comboex.c
+++ b/dlls/comctl32/tests/comboex.c
@@ -82,7 +82,7 @@ static void test_comboboxex(void) {
out_of_range_item[] = {'O','u','t',' ','o','f',' ','R','a','n','g','e',' ','I','t','e','m',0};
/* Allocate space for result */
- textBuffer = malloc(MAX_CHARS);
+ textBuffer = HeapAlloc(GetProcessHeap(), 0, MAX_CHARS);
/* Basic comboboxex test */
myHwnd = createComboEx(WS_BORDER | WS_VISIBLE | WS_CHILD | CBS_DROPDOWN);
@@ -168,7 +168,7 @@ static void test_comboboxex(void) {
/* Cleanup */
- free(textBuffer);
+ HeapFree(GetProcessHeap(), 0, textBuffer);
}
More information about the wine-cvs
mailing list