kernel32: Implement CAL_RETURN_NUMBER in EnumCalendarInfo*.
Based on a patch by Mike Blumenkrantz.
This commit is contained in:
parent
3de75b1e95
commit
614c45ad1c
|
@ -1975,7 +1975,9 @@ static BOOL NLS_EnumCalendarInfoAW(void *calinfoproc, LCID locale,
|
|||
{
|
||||
do /* loop until there's no error */
|
||||
{
|
||||
if (unicode)
|
||||
if (caltype & CAL_RETURN_NUMBER)
|
||||
ret = GetCalendarInfoW(locale, calendar, caltype, NULL, bufSz / sizeof(WCHAR), (LPDWORD)buf);
|
||||
else if (unicode)
|
||||
ret = GetCalendarInfoW(locale, calendar, caltype, buf, bufSz / sizeof(WCHAR), NULL);
|
||||
else ret = GetCalendarInfoA(locale, calendar, caltype, (CHAR*)buf, bufSz / sizeof(CHAR), NULL);
|
||||
|
||||
|
|
Loading…
Reference in New Issue