Module: wine Branch: master Commit: 94456eb46db4f3cf04e89928c6f71c962ed94c82 URL: https://gitlab.winehq.org/wine/wine/-/commit/94456eb46db4f3cf04e89928c6f71c9...
Author: Alexandre Julliard julliard@winehq.org Date: Fri Mar 24 16:05:39 2023 +0100
kernelbase: Fix pattern checking for genitive month names in get_date_format().
---
dlls/kernelbase/locale.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dlls/kernelbase/locale.c b/dlls/kernelbase/locale.c index 632f5b6d88a..45180f4bb8a 100644 --- a/dlls/kernelbase/locale.c +++ b/dlls/kernelbase/locale.c @@ -7771,7 +7771,7 @@ static int get_date_format( const NLS_LOCALE_DATA *locale, DWORD flags, const SY val = (count == 3 ? LOCALE_SABBREVMONTHNAME1 : LOCALE_SMONTHNAME1) + time.wMonth - 1; if (!genitive) { - for (i = count; format[i]; i += get_pattern_len( format, L"yMd" )) + for (i = count; format[i]; i += get_pattern_len( format + i, L"yMd" )) { if (format[i] != 'd') continue; if (format[i + 1] != 'd' || format[i + 2] != 'd')