Add a back-slash to $INSTDIR when loading dir page only when it's a root directory

git-svn-id: https://svn.code.sf.net/p/nsis/code/NSIS/trunk@2971 212acab6-be3b-0410-9dea-997c60f758d6
This commit is contained in:
kichik 2003-09-26 21:12:43 +00:00
parent 0022d880b4
commit ae2697bc56

View file

@ -737,7 +737,9 @@ static BOOL CALLBACK DirProc(HWND hwndDlg, UINT uMsg, WPARAM wParam, LPARAM lPar
ShowWindow(h,SW_SHOWNA);
}
#endif
SetUITextNT(IDC_DIR,addtrailingslash(dir));
if (validpathspec(dir) && !skip_root(dir))
addtrailingslash(dir);
SetUITextNT(IDC_DIR,dir);
SetUITextFromLang(IDC_BROWSE,this_page->parms[2]);
SetUITextFromLang(IDC_SELDIRTEXT,this_page->parms[1]);
}