a bit more testing
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2945 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0b612e1e51
commit
f28bb70254
2 changed files with 5 additions and 2 deletions
|
@ -55,6 +55,7 @@ char *STRDUP(const char *c)
|
|||
return lstrcpy(t,c);
|
||||
}
|
||||
|
||||
#define FIELD_INVALID (0)
|
||||
#define FIELD_LABEL (1)
|
||||
#define FIELD_ICON (2)
|
||||
#define FIELD_BITMAP (3)
|
||||
|
@ -345,12 +346,14 @@ bool SaveSettings(void) {
|
|||
|
||||
int CurrField = 1;
|
||||
for(nIdx = 0; nIdx < nNumFields; nIdx++) {
|
||||
if ( pFields[nIdx].nType == FIELD_BROWSEBUTTON )
|
||||
if (pFields[nIdx].nType == FIELD_BROWSEBUTTON)
|
||||
continue;
|
||||
|
||||
hwnd = pFields[nIdx].hwnd;
|
||||
wsprintf(szField, "Field %d", CurrField);
|
||||
switch(pFields[nIdx].nType) {
|
||||
case FIELD_INVALID:
|
||||
break;
|
||||
case FIELD_CHECKBOX:
|
||||
case FIELD_RADIOBUTTON:
|
||||
{
|
||||
|
@ -544,7 +547,7 @@ int ReadSettings(void) {
|
|||
|
||||
// Get the control type
|
||||
pFields[nIdx].nType = LookupToken(TypeTable, szResult);
|
||||
if (!pFields[nIdx].nType)
|
||||
if (pFields[nIdx].nType == FIELD_INVALID)
|
||||
continue;
|
||||
|
||||
// Lookup flags associated with the control type
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue