setupapi/tests: Write-strings warnings fix.
This commit is contained in:
parent
8e2d28dd25
commit
259d6b5077
|
@ -36,11 +36,12 @@ static void test_SetupDiCreateDeviceInfoListEx(void)
|
||||||
HDEVINFO devlist;
|
HDEVINFO devlist;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
DWORD error;
|
DWORD error;
|
||||||
|
static CHAR notnull[] = "NotNull";
|
||||||
static const WCHAR machine[] = { 'd','u','m','m','y',0 };
|
static const WCHAR machine[] = { 'd','u','m','m','y',0 };
|
||||||
|
|
||||||
SetLastError(0xdeadbeef);
|
SetLastError(0xdeadbeef);
|
||||||
/* create empty DeviceInfoList, but set Reserved to a value, which is not NULL */
|
/* 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();
|
error = GetLastError();
|
||||||
ok(devlist == INVALID_HANDLE_VALUE, "SetupDiCreateDeviceInfoListExW failed : %p %ld (expected %p)\n", devlist, error, INVALID_HANDLE_VALUE);
|
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;
|
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;
|
PSP_INF_INFORMATION info;
|
||||||
BOOL ret;
|
BOOL ret;
|
||||||
|
|
Loading…
Reference in New Issue