Commit 614c45ad authored by Daniel Jelinski's avatar Daniel Jelinski Committed by Alexandre Julliard

kernel32: Implement CAL_RETURN_NUMBER in EnumCalendarInfo*.

Based on a patch by Mike Blumenkrantz.
parent 3de75b1e
......@@ -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);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment