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;
|
||||
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;
|
||||
|
|
Loading…
Reference in New Issue