Update strings.c

The check condition is obviously wrong. It should check for EQUAL. The original bitwise check caused any other language to turn into DE because as long as a bit is filtered, it will hit.
This commit is contained in:
programatix 2019-07-04 09:58:29 +08:00 committed by Frank Morgner
parent 3c1624676d
commit 6b97071bb3
1 changed files with 1 additions and 1 deletions

View File

@ -157,7 +157,7 @@ const char *ui_get_str(struct sc_context *ctx, struct sc_atr *atr,
|| !find_lang_str(p15card->tokeninfo->preferred_language, &lang)) {
#ifdef _WIN32
LANGID langid = GetUserDefaultUILanguage();
if (langid & LANG_GERMAN) {
if (langid == LANG_GERMAN) {
lang = DE;
}
#else