Commit d2dd407e authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

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

parent c1833ea9
...@@ -2440,13 +2440,13 @@ static void test_SetLocaleInfoA(void) ...@@ -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());
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment