kernel32: Pass in a real string to SetLocaleInfoA, not a function pointer (Coverity).

This commit is contained in:
Marcus Meissner 2011-05-29 23:31:03 +02:00 committed by Alexandre Julliard
parent c1833ea963
commit d2dd407eb9
1 changed files with 2 additions and 2 deletions

View File

@ -2440,13 +2440,13 @@ static void test_SetLocaleInfoA(void)
/* IDATE */
SetLastError(0);
bRet = SetLocaleInfoA(lcid, LOCALE_IDATE, (LPSTR)test_SetLocaleInfoA);
bRet = SetLocaleInfoA(lcid, LOCALE_IDATE, "test_SetLocaleInfoA");
ok(!bRet && GetLastError() == ERROR_INVALID_FLAGS,
"Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError());
/* ILDATE */
SetLastError(0);
bRet = SetLocaleInfoA(lcid, LOCALE_ILDATE, (LPSTR)test_SetLocaleInfoA);
bRet = SetLocaleInfoA(lcid, LOCALE_ILDATE, "test_SetLocaleInfoA");
ok(!bRet && GetLastError() == ERROR_INVALID_FLAGS,
"Expected ERROR_INVALID_FLAGS, got %d\n", GetLastError());
}