Language detection works for primary only again. It was broken since 1.14, heh

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2621 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-06-08 14:45:56 +00:00
parent 7144cb0f97
commit 6d9d1cc82d
3 changed files with 9 additions and 9 deletions

View file

@ -142,7 +142,7 @@ void NSISCALL build_g_logfile()
static void NSISCALL set_language()
{
int i;
LANGID lang_mask=~(LANGID)0;
LANGID lang_mask=(LANGID)~0;
LANGID lang=myatoi(state_language);
char *language_table=0;
int lang_num=g_inst_cmnheader->language_tables_num;
@ -157,7 +157,7 @@ lang_again:
}
}
if (i == lang_num) {
if (lang_mask == ~(LANGID)0)
if (lang_mask == (LANGID)~0)
lang_mask=0x3ff; // primary lang
else // we already tried once and we still don't have a language table
lang_mask=0; // first lang