[KERNEL32] Apply Wine commit 89a558f by Akihiro Sagawa: Avoid uninitialised value...
authorAmine Khaldi <amine.khaldi@reactos.org>
Sat, 6 Jun 2015 12:22:55 +0000 (12:22 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Sat, 6 Jun 2015 12:22:55 +0000 (12:22 +0000)
svn path=/trunk/; revision=68033

reactos/dll/win32/kernel32/winnls/string/lcformat.c

index 386f8fa..8d7a469 100644 (file)
@@ -2099,7 +2099,7 @@ int WINAPI GetCalendarInfoA(LCID lcid, CALID Calendar, CALTYPE CalType,
 
     ret = GetCalendarInfoW(lcid, Calendar, CalType, lpCalDataW, cchData, lpValue);
     if(ret && lpCalDataW && lpCalData)
-      WideCharToMultiByte(CP_ACP, 0, lpCalDataW, cchData, lpCalData, cchData, NULL, NULL);
+      WideCharToMultiByte(CP_ACP, 0, lpCalDataW, -1, lpCalData, cchData, NULL, NULL);
     else if (CalType & CAL_RETURN_NUMBER)
         ret *= sizeof(WCHAR);
     HeapFree(GetProcessHeap(), 0, lpCalDataW);