setupapi/tests: Write-strings warnings fix.

This commit is contained in:
Andrew Talbot 2006-08-05 17:28:04 +01:00 committed by Alexandre Julliard
parent 8e2d28dd25
commit 259d6b5077
2 changed files with 3 additions and 2 deletions

View File

@ -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);

View File

@ -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;