[v2 PATCH 3/4] kernel32: Added support for TIME_NOSECONDS, restructured EnumTimeFormats implementation
Dmitry Timoshkov
dmitry at baikal.ru
Tue Nov 10 08:45:10 CST 2015
Nikolay Sivov <nsivov at codeweavers.com> wrote:
> -BOOL WINAPI EnumTimeFormatsW(TIMEFMT_ENUMPROCW proc, LCID lcid, DWORD flags)
> +BOOL WINAPI EnumTimeFormatsA(TIMEFMT_ENUMPROCA proc, LCID lcid, DWORD flags)
> {
> - WCHAR buf[256];
> + struct enumtimeformats_context ctxt;
>
> - if (!proc)
> + /* EnumTimeFormatsA doesn't support flags, EnumTimeFormatsW does. */
> + if (flags & ~LOCALE_USE_CP_ACP)
> {
> - SetLastError(ERROR_INVALID_PARAMETER);
> + SetLastError(ERROR_INVALID_FLAGS);
This change doesn't seem to be confirmed by a test case.
--
Dmitry.
More information about the wine-devel
mailing list