[KERNEL32] Apply Wine commit debd62c by Daniel Jelinski: Improved stub for GetCalenda...
[reactos.git] / 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;