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
This commit is contained in:
parent
6939c33782
commit
74e7388e90
1 changed files with 3 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue