Fix browse button to use correct windows style initial directory

This commit is contained in:
Bill Hoffman 2004-07-14 16:09:15 -04:00
parent b993cd7fba
commit cb85eeaa11
1 changed files with 3 additions and 1 deletions

View File

@ -429,7 +429,9 @@ HCURSOR CMakeSetupDialog::OnQueryDragIcon()
// Browse button
bool CMakeSetupDialog::Browse(CString &result, const char *title)
{
CPathDialog dlg("Select Path", title, result);
CString initialDir = result;
initialDir.Replace("/", "\\");
CPathDialog dlg("Select Path", title, initialDir);
if(dlg.DoModal()==IDOK)
{
result = dlg.GetPathName();