vbscript/tests: Fix first-day-of-week test on mixed locales.
Signed-off-by: Alex Henrie <alexhenrie24@gmail.com> Signed-off-by: Jacek Caban <jacek@codeweavers.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
00fe56a736
commit
e04a1c4210
|
@ -219,8 +219,7 @@ static void detect_locale(void)
|
||||||
PRIMARYLANGID(GetUserDefaultUILanguage()) == LANG_ENGLISH &&
|
PRIMARYLANGID(GetUserDefaultUILanguage()) == LANG_ENGLISH &&
|
||||||
PRIMARYLANGID(GetUserDefaultLangID()) == LANG_ENGLISH);
|
PRIMARYLANGID(GetUserDefaultLangID()) == LANG_ENGLISH);
|
||||||
|
|
||||||
GetLocaleInfoA(pGetThreadUILanguage ? pGetThreadUILanguage() : GetUserDefaultUILanguage(),
|
GetLocaleInfoA(LOCALE_USER_DEFAULT, LOCALE_IFIRSTDAYOFWEEK | LOCALE_RETURN_NUMBER,
|
||||||
LOCALE_IFIRSTDAYOFWEEK | LOCALE_RETURN_NUMBER,
|
|
||||||
(void*)&first_day_of_week, sizeof(first_day_of_week));
|
(void*)&first_day_of_week, sizeof(first_day_of_week));
|
||||||
first_day_of_week = 1 + (first_day_of_week + 1) % 7;
|
first_day_of_week = 1 + (first_day_of_week + 1) % 7;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue