mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-07 06:34:06 +00:00
scrobj/tests: Use CRT memory allocation functions.
Signed-off-by: Nikolay Sivov <nsivov@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
5aab379deb
commit
a406123812
|
@ -27,7 +27,6 @@
|
||||||
#include <mshtmhst.h>
|
#include <mshtmhst.h>
|
||||||
|
|
||||||
#include "wine/test.h"
|
#include "wine/test.h"
|
||||||
#include "wine/heap.h"
|
|
||||||
|
|
||||||
static HRESULT (WINAPI *pDllInstall)(BOOL, const WCHAR *);
|
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());
|
ok(res, "CloseHandle failed: %lu\n", GetLastError());
|
||||||
|
|
||||||
size = (wcslen(buffer) + 1) * sizeof(WCHAR);
|
size = (wcslen(buffer) + 1) * sizeof(WCHAR);
|
||||||
ret = heap_alloc(size);
|
ret = malloc(size);
|
||||||
memcpy(ret, buffer, size);
|
memcpy(ret, buffer, size);
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1078,7 +1077,7 @@ START_TEST(scrobj)
|
||||||
register_script_object(FALSE, test_file);
|
register_script_object(FALSE, test_file);
|
||||||
|
|
||||||
register_script_engine(FALSE);
|
register_script_engine(FALSE);
|
||||||
heap_free(test_file);
|
free(test_file);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
skip("Could not register script engine\n");
|
skip("Could not register script engine\n");
|
||||||
|
|
Loading…
Reference in a new issue