1
0
Fork 0
mirror of synced 2025-03-07 03:53:26 +01:00

virtdisk/tests: Use CRT allocation functions.

This commit is contained in:
Alex Henrie 2023-11-04 20:59:20 -07:00 committed by Alexandre Julliard
parent eea358e6cb
commit 26ad812286

View file

@ -20,7 +20,6 @@
#include "windef.h"
#include "initguid.h"
#include "virtdisk.h"
#include "wine/heap.h"
#include "wine/test.h"
static DWORD (WINAPI *pGetStorageDependencyInformation)(HANDLE,GET_STORAGE_DEPENDENCY_FLAG,ULONG,STORAGE_DEPENDENCY_INFO*,ULONG*);
@ -37,7 +36,7 @@ static void test_GetStorageDependencyInformation(void)
ok(handle != INVALID_HANDLE_VALUE, "Expected a handle\n");
size = sizeof(STORAGE_DEPENDENCY_INFO);
info = heap_alloc(size);
info = malloc(size);
ret = pGetStorageDependencyInformation(handle, GET_STORAGE_DEPENDENCY_FLAG_DISK_HANDLE, 0, info, 0);
ok(ret == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %ld\n", ret);
@ -45,7 +44,7 @@ static void test_GetStorageDependencyInformation(void)
ret = pGetStorageDependencyInformation(handle, GET_STORAGE_DEPENDENCY_FLAG_DISK_HANDLE, size, NULL, 0);
ok(ret == ERROR_INVALID_PARAMETER, "Expected ERROR_INVALID_PARAMETER, got %ld\n", ret);
heap_free(info);
free(info);
CloseHandle(handle);
}