kernel32: Pass in a real string to SetLocaleInfoA, not a function pointer (Coverity).
This commit is contained in:
parent
c1833ea963
commit
d2dd407eb9
|
@ -2440,13 +2440,13 @@ static void test_SetLocaleInfoA(void)
|
||||||
|
|
||||||
/* IDATE */
|
/* IDATE */
|
||||||
SetLastError(0);
|
SetLastError(0);
|
||||||
bRet = SetLocaleInfoA(lcid, LOCALE_IDATE, (LPSTR)test_SetLocaleInfoA);
|
bRet = SetLocaleInfoA(lcid, LOCALE_IDATE, "test_SetLocaleInfoA");
|
||||||
ok(!bRet && GetLastError() == ERROR_INVALID_FLAGS,
|
ok(!bRet && GetLastError() == ERROR_INVALID_FLAGS,
|
||||||
"Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError());
|
"Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError());
|
||||||
|
|
||||||
/* ILDATE */
|
/* ILDATE */
|
||||||
SetLastError(0);
|
SetLastError(0);
|
||||||
bRet = SetLocaleInfoA(lcid, LOCALE_ILDATE, (LPSTR)test_SetLocaleInfoA);
|
bRet = SetLocaleInfoA(lcid, LOCALE_ILDATE, "test_SetLocaleInfoA");
|
||||||
ok(!bRet && GetLastError() == ERROR_INVALID_FLAGS,
|
ok(!bRet && GetLastError() == ERROR_INVALID_FLAGS,
|
||||||
"Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError());
|
"Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError());
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue