From 74e7388e90b81d51ece929ec7823c6f6b6e7c7dc Mon Sep 17 00:00:00 2001 From: kichik Date: Sat, 3 May 2008 13:16:02 +0000 Subject: [PATCH] allow 'A' to be specified anywhere in the flags field git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5629 212acab6-be3b-0410-9dea-997c60f758d6 --- Contrib/LangDLL/LangDLL.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Contrib/LangDLL/LangDLL.c b/Contrib/LangDLL/LangDLL.c index dfd3777f..1f34f5a9 100644 --- a/Contrib/LangDLL/LangDLL.c +++ b/Contrib/LangDLL/LangDLL.c @@ -120,6 +120,7 @@ void __declspec(dllexport) LangDialog(HWND hwndParent, int string_size, { int i; + int doauto = 0; BOOL pop_empty_string = FALSE; // get texts @@ -134,13 +135,14 @@ void __declspec(dllexport) LangDialog(HWND hwndParent, int string_size, char *p=temp; while (*p) { + if (*p == 'A') doauto=1; // parse auto count flag if (*p == 'F') dofont=1; // parse font flag if (*p == 'C') docp=1; // parse codepage flag p++; } } - if (*temp == 'A') { + if (doauto) { // automatic language count stack_t *th; langs_num=0;