czi's patch for bug #1651312
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@4923 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
0221765d39
commit
0594faf227
1 changed files with 3 additions and 8 deletions
|
@ -591,11 +591,10 @@ LRESULT WINAPI WMCommandProc(HWND hWnd, UINT id, HWND hwndCtl, UINT codeNotify)
|
|||
if (g_done || nIdx < 0)
|
||||
return 0;
|
||||
|
||||
FieldType *pField = pFields + nIdx;
|
||||
|
||||
switch (pField->nType)
|
||||
switch (pFields[nIdx].nType)
|
||||
{
|
||||
case FIELD_BROWSEBUTTON:
|
||||
--nIdx;
|
||||
case FIELD_LINK:
|
||||
case FIELD_BUTTON:
|
||||
case FIELD_CHECKBOX:
|
||||
|
@ -612,11 +611,7 @@ LRESULT WINAPI WMCommandProc(HWND hWnd, UINT id, HWND hwndCtl, UINT codeNotify)
|
|||
return 0;
|
||||
}
|
||||
|
||||
if (pFields[nIdx].nType == FIELD_BROWSEBUTTON)
|
||||
{
|
||||
--nIdx;
|
||||
--pField;
|
||||
}
|
||||
FieldType *pField = pFields + nIdx;
|
||||
|
||||
char szBrowsePath[MAX_PATH];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue