fixed bug #1684751 - StartMenu accepts empty paths
git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@5006 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
parent
de7ebfe3ce
commit
c6caf04ec7
1 changed files with 6 additions and 0 deletions
|
@ -355,6 +355,12 @@ BOOL CALLBACK dlgProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lParam)
|
|||
EnableWindow(hwDirList, bEnable);
|
||||
EnableWindow(hwLocation, bEnable);
|
||||
}
|
||||
else if (LOWORD(wParam) == IDC_LOCATION && HIWORD(wParam) == EN_CHANGE)
|
||||
{
|
||||
GetWindowText(hwLocation, buf, MAX_PATH);
|
||||
validate_filename(buf);
|
||||
EnableWindow(GetDlgItem(hwParent, IDOK), *buf != '\0');
|
||||
}
|
||||
break;
|
||||
case WM_USER+666:
|
||||
g_done = 1;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue