Francois Gouget : lz32/tests: Replace malloc() with HeapAlloc().

Alexandre Julliard julliard at winehq.org
Wed May 13 10:19:44 CDT 2009


Module: wine
Branch: master
Commit: ea58ea76e2f4450f4c75107dbcb03260811da462
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=ea58ea76e2f4450f4c75107dbcb03260811da462

Author: Francois Gouget <fgouget at free.fr>
Date:   Wed May 13 10:32:29 2009 +0200

lz32/tests: Replace malloc() with HeapAlloc().

---

 dlls/lz32/tests/lzexpand_main.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/lz32/tests/lzexpand_main.c b/dlls/lz32/tests/lzexpand_main.c
index 91fd687..3e46fb0 100644
--- a/dlls/lz32/tests/lzexpand_main.c
+++ b/dlls/lz32/tests/lzexpand_main.c
@@ -881,10 +881,10 @@ static void test_LZOpenFileW(void)
 
 START_TEST(lzexpand_main)
 {
-  buf = malloc(uncompressed_data_size * 2);
+  buf = HeapAlloc(GetProcessHeap(), 0, uncompressed_data_size * 2);
   test_LZOpenFileA();
   test_LZOpenFileW();
   test_LZRead();
   test_LZCopy();
-  free(buf);
+  HeapFree(GetProcessHeap(), 0, buf);
 }




More information about the wine-cvs mailing list