From 259d6b50772674fdf01d7cec623e120a4af96c7b Mon Sep 17 00:00:00 2001 From: Andrew Talbot Date: Sat, 5 Aug 2006 17:28:04 +0100 Subject: [PATCH] setupapi/tests: Write-strings warnings fix. --- dlls/setupapi/tests/devinst.c | 3 ++- dlls/setupapi/tests/query.c | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/dlls/setupapi/tests/devinst.c b/dlls/setupapi/tests/devinst.c index b2f3a5268f0..bef1315ef4e 100644 --- a/dlls/setupapi/tests/devinst.c +++ b/dlls/setupapi/tests/devinst.c @@ -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); diff --git a/dlls/setupapi/tests/query.c b/dlls/setupapi/tests/query.c index be7f154c174..e823e7d2473 100644 --- a/dlls/setupapi/tests/query.c +++ b/dlls/setupapi/tests/query.c @@ -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;