diff --git a/Contrib/LangDLL/LangDLL.c b/Contrib/LangDLL/LangDLL.c index 136cd41a..de7bf21c 100644 --- a/Contrib/LangDLL/LangDLL.c +++ b/Contrib/LangDLL/LangDLL.c @@ -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); } diff --git a/Plugins/LangDLL.dll b/Plugins/LangDLL.dll index 7adcfc22..84127582 100644 Binary files a/Plugins/LangDLL.dll and b/Plugins/LangDLL.dll differ