kernel32: Implement CAL_RETURN_NUMBER in EnumCalendarInfo*.

Based on a patch by Mike Blumenkrantz.
This commit is contained in:
Daniel Jelinski 2013-05-20 23:18:22 +02:00 committed by Alexandre Julliard
parent 3de75b1e95
commit 614c45ad1c
1 changed files with 3 additions and 1 deletions

View File

@ -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);