[PATCH v2] vbscript/tests: Fix test for WeekDayName(foo, bar, 0).
Alexandre Julliard
julliard at winehq.org
Wed Nov 1 13:30:45 CDT 2017
Jacek Caban <jacek at codeweavers.com> writes:
> Hi Alex,
>
> On 30.10.2017 18:17, Alex Henrie wrote:
>> -static BOOL is_lang_english(void)
>> +static void detect_locale(void)
>> {
>> - static HMODULE hkernel32 = NULL;
>> - static LANGID (WINAPI *pGetThreadUILanguage)(void) = NULL;
>> - static LANGID (WINAPI *pGetUserDefaultUILanguage)(void) = NULL;
>> + is_english = (PRIMARYLANGID(GetThreadUILanguage()) == LANG_ENGLISH &&
>> + PRIMARYLANGID(GetUserDefaultUILanguage()) == LANG_ENGLISH &&
>> + PRIMARYLANGID(GetUserDefaultLangID()) == LANG_ENGLISH);
>
>
> GetThreadUILanguage is available since Vista, so we still need to
> check it in runtime. BTW, I'm not sure what's up with TestBot. There
> are failures (as expected), but it has OK status on patch status page.
Probably that's because there are no failure messages, only timeouts;
the testbot doesn't seem to handle that case correctly.
--
Alexandre Julliard
julliard at winehq.org
More information about the wine-devel
mailing list