Commit e04a1c42 authored by Alex Henrie's avatar Alex Henrie Committed by Alexandre Julliard

vbscript/tests: Fix first-day-of-week test on mixed locales.

parent 00fe56a7
...@@ -219,8 +219,7 @@ static void detect_locale(void) ...@@ -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;
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment