Hi Nikolay,
On 5/15/22 15:56, Nikolay Sivov wrote:
if (!wcscmp(interval, L"yyyy"))
ud.st.wYear += count;
else if (!wcscmp(interval, L"q"))
ud.st.wMonth += 3 * count;
else if (!wcscmp(interval, L"m"))
ud.st.wMonth += count;
else if (!wcscmp(interval, L"y")
|| !wcscmp(interval, L"d")
|| !wcscmp(interval, L"w"))
{
ud.st.wDay += count;
}
else if (!wcscmp(interval, L"ww"))
ud.st.wDay += 7 * count;
else if (!wcscmp(interval, L"h"))
ud.st.wHour += count;
else if (!wcscmp(interval, L"n"))
ud.st.wMinute += count;
else if (!wcscmp(interval, L"s"))
I think that those string comparisons should be case-insensitive.
Thanks,
Jacek