[KERNEL32] Apply Wine commit debd62c by Daniel Jelinski: Improved stub for GetCalenda...
authorAmine Khaldi <amine.khaldi@reactos.org>
Mon, 1 Jun 2015 18:53:24 +0000 (18:53 +0000)
committerAmine Khaldi <amine.khaldi@reactos.org>
Mon, 1 Jun 2015 18:53:24 +0000 (18:53 +0000)
svn path=/trunk/; revision=67996

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

index a18fcbb..386f8fa 100644 (file)
@@ -2144,7 +2144,8 @@ int WINAPI GetCalendarInfoW(LCID Locale, CALID Calendar, CALTYPE CalType,
             return GetLocaleInfoW(Locale, LOCALE_ICALENDARTYPE, lpCalData, cchData);
        case CAL_SCALNAME:
             FIXME("Unimplemented caltype %d\n", CalType & 0xffff);
-           return 0;
+            if (lpCalData) *lpCalData = 0;
+           return 1;
        case CAL_IYEAROFFSETRANGE:
             FIXME("Unimplemented caltype %d\n", CalType & 0xffff);
            return 0;