[v2 PATCH 1/2] vbscript: Implement Weekday().
Dmitry Timoshkov
dmitry at baikal.ru
Thu May 19 02:58:42 CDT 2022
Nikolay Sivov <nsivov at codeweavers.com> wrote:
> + if (FAILED(hres = to_system_time(args, &st))) return hres;
> +
> + return FAILED(hres) ? hres : return_short(res, 1 + (7 - first_day + st.wDayOfWeek) % 7);
> }
Last FAILED() seems to be redundant. And to_int() failure probably should be
handled earlier, otherwise it seems to be lost.
--
Dmitry.
More information about the wine-devel
mailing list