msvcrt: Fix testing zero-valued expression with bitwise and in find_best_locale_proc.
The check should be for all of the flags being set instead.
This commit is contained in:
parent
ed9cd3ede2
commit
d7ca73ce80
@ -189,7 +189,8 @@ find_best_locale_proc(HMODULE hModule, LPCSTR type, LPCSTR name, WORD LangID, LO
|
|||||||
res->match_flags = flags;
|
res->match_flags = flags;
|
||||||
res->found_lang_id = LangID;
|
res->found_lang_id = LangID;
|
||||||
}
|
}
|
||||||
if (flags & (FOUND_LANGUAGE & FOUND_COUNTRY & FOUND_CODEPAGE))
|
if ((flags & (FOUND_LANGUAGE | FOUND_COUNTRY | FOUND_CODEPAGE)) ==
|
||||||
|
(FOUND_LANGUAGE | FOUND_COUNTRY | FOUND_CODEPAGE))
|
||||||
{
|
{
|
||||||
TRACE(":found exact locale match\n");
|
TRACE(":found exact locale match\n");
|
||||||
return STOP_LOOKING;
|
return STOP_LOOKING;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user