Nikolay Sivov : scrobj/tests: Use CRT memory allocation functions.

Alexandre Julliard julliard at winehq.org
Wed Mar 30 15:43:56 CDT 2022


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

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Wed Mar 30 08:55:49 2022 +0300

scrobj/tests: Use CRT memory allocation functions.

Signed-off-by: Nikolay Sivov <nsivov at codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/scrobj/tests/scrobj.c | 5 ++---
 1 file changed, 2 insertions(+), 3 deletions(-)

diff --git a/dlls/scrobj/tests/scrobj.c b/dlls/scrobj/tests/scrobj.c
index 108b30e7bea..64b07832227 100644
--- a/dlls/scrobj/tests/scrobj.c
+++ b/dlls/scrobj/tests/scrobj.c
@@ -27,7 +27,6 @@
 #include <mshtmhst.h>
 
 #include "wine/test.h"
-#include "wine/heap.h"
 
 static HRESULT (WINAPI *pDllInstall)(BOOL, const WCHAR *);
 
@@ -715,7 +714,7 @@ static WCHAR *get_test_file(const char *res_name)
     ok(res, "CloseHandle failed: %lu\n", GetLastError());
 
     size = (wcslen(buffer) + 1) * sizeof(WCHAR);
-    ret = heap_alloc(size);
+    ret = malloc(size);
     memcpy(ret, buffer, size);
     return ret;
 }
@@ -1078,7 +1077,7 @@ START_TEST(scrobj)
         register_script_object(FALSE, test_file);
 
         register_script_engine(FALSE);
-        heap_free(test_file);
+        free(test_file);
     }
     else
         skip("Could not register script engine\n");




More information about the wine-cvs mailing list