Commit 259d6b50 authored by Andrew Talbot's avatar Andrew Talbot Committed by Alexandre Julliard

setupapi/tests: Write-strings warnings fix.

parent 8e2d28dd
......@@ -36,11 +36,12 @@ static void test_SetupDiCreateDeviceInfoListEx(void)
HDEVINFO devlist;
BOOL ret;
DWORD error;
static CHAR notnull[] = "NotNull";
static const WCHAR machine[] = { 'd','u','m','m','y',0 };
SetLastError(0xdeadbeef);
/* create empty DeviceInfoList, but set Reserved to a value, which is not NULL */
devlist = SetupDiCreateDeviceInfoListExW(NULL, NULL, NULL, "NotNull");
devlist = SetupDiCreateDeviceInfoListExW(NULL, NULL, NULL, notnull);
error = GetLastError();
ok(devlist == INVALID_HANDLE_VALUE, "SetupDiCreateDeviceInfoListExW failed : %p %ld (expected %p)\n", devlist, error, INVALID_HANDLE_VALUE);
......
......@@ -107,7 +107,7 @@ static BOOL check_info_filename(PSP_INF_INFORMATION info, LPSTR test)
return ret;
}
static PSP_INF_INFORMATION alloc_inf_info(LPSTR filename, DWORD search, PDWORD size)
static PSP_INF_INFORMATION alloc_inf_info(LPCSTR filename, DWORD search, PDWORD size)
{
PSP_INF_INFORMATION info;
BOOL ret;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment