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

Alexandre Julliard julliard at winehq.org
Mon May 30 12:41:17 CDT 2011


Module: wine
Branch: master
Commit: d2dd407eb91e894e7e0fc6aa861514e3c42de297
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d2dd407eb91e894e7e0fc6aa861514e3c42de297

Author: Marcus Meissner <marcus at jet.franken.de>
Date:   Sun May 29 23:31:03 2011 +0200

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

---

 dlls/kernel32/tests/locale.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/dlls/kernel32/tests/locale.c b/dlls/kernel32/tests/locale.c
index 1268c1d..e13247e 100644
--- a/dlls/kernel32/tests/locale.c
+++ b/dlls/kernel32/tests/locale.c
@@ -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());
 }




More information about the wine-cvs mailing list