Forgot one pop

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2262 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-03-09 21:24:04 +00:00
parent 8be20c63ad
commit 4605b49113
2 changed files with 5 additions and 0 deletions

View file

@ -94,6 +94,7 @@ void __declspec(dllexport) LangDialog(HWND hwndParent, int string_size,
{
int i;
BOOL bPopOneMore = FALSE;
if (popstring(g_wndtitle)) return;
if (popstring(g_wndtext)) return;
@ -110,6 +111,7 @@ void __declspec(dllexport) LangDialog(HWND hwndParent, int string_size,
}
if (!th) return;
langs_num /= 2;
bPopOneMore = TRUE;
}
else
langs_num = myatoi(temp);
@ -131,6 +133,9 @@ void __declspec(dllexport) LangDialog(HWND hwndParent, int string_size,
langs[i].id = GlobalAlloc(GPTR, lstrlen(temp)+1);
lstrcpy(langs[i].id, temp);
}
if (bPopOneMore) {
if (popstring(temp)) return;
}
DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG), 0, DialogProc);
}