oleaut32 1/2: [try 3] Implements function
varformat:VarWeekdayName
Alexandre Julliard
julliard at winehq.org
Wed Oct 4 14:10:57 CDT 2006
"Benjamin Arai" <me at benjaminarai.com> writes:
> + if (fAbbrev)
> + if (iFirstDay == 0)
> + localeValue = LOCALE_SABBREVDAYNAME1 + ((iWeekday + LOCALE_IFIRSTDAYOFWEEK - 1) % 7);
> + else
> + localeValue = LOCALE_SABBREVDAYNAME1 + ((iWeekday + iFirstDay + 4) % 7);
> + else
> + if (iFirstDay == 0)
> + localeValue = LOCALE_SDAYNAME1 + ((iWeekday + LOCALE_IFIRSTDAYOFWEEK - 1) % 7);
> + else
> + localeValue = LOCALE_SDAYNAME1 + ((iWeekday + iFirstDay + 4) % 7);
This obviously can't work, LOCALE_IFIRSTDAYOFWEEK is a constant.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list