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:
parent
8be20c63ad
commit
4605b49113
2 changed files with 5 additions and 0 deletions
|
@ -94,6 +94,7 @@ void __declspec(dllexport) LangDialog(HWND hwndParent, int string_size,
|
||||||
|
|
||||||
{
|
{
|
||||||
int i;
|
int i;
|
||||||
|
BOOL bPopOneMore = FALSE;
|
||||||
|
|
||||||
if (popstring(g_wndtitle)) return;
|
if (popstring(g_wndtitle)) return;
|
||||||
if (popstring(g_wndtext)) return;
|
if (popstring(g_wndtext)) return;
|
||||||
|
@ -110,6 +111,7 @@ void __declspec(dllexport) LangDialog(HWND hwndParent, int string_size,
|
||||||
}
|
}
|
||||||
if (!th) return;
|
if (!th) return;
|
||||||
langs_num /= 2;
|
langs_num /= 2;
|
||||||
|
bPopOneMore = TRUE;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
langs_num = myatoi(temp);
|
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);
|
langs[i].id = GlobalAlloc(GPTR, lstrlen(temp)+1);
|
||||||
lstrcpy(langs[i].id, temp);
|
lstrcpy(langs[i].id, temp);
|
||||||
}
|
}
|
||||||
|
if (bPopOneMore) {
|
||||||
|
if (popstring(temp)) return;
|
||||||
|
}
|
||||||
|
|
||||||
DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG), 0, DialogProc);
|
DialogBox(g_hInstance, MAKEINTRESOURCE(IDD_DIALOG), 0, DialogProc);
|
||||||
}
|
}
|
||||||
|
|
Binary file not shown.
Loading…
Add table
Add a link
Reference in a new issue