[v2 PATCH 1/2] vbscript: Implement Weekday().

Nikolay Sivov nsivov at codeweavers.com
Thu May 19 03:36:29 CDT 2022



On 5/19/22 10:58, Dmitry Timoshkov wrote:
> 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.
>
Thank you.



More information about the wine-devel mailing list