summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--Source/MFCDialog/CMakeSetupDialog.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/MFCDialog/CMakeSetupDialog.cpp b/Source/MFCDialog/CMakeSetupDialog.cpp
index c8b8612..2de0e9f 100644
--- a/Source/MFCDialog/CMakeSetupDialog.cpp
+++ b/Source/MFCDialog/CMakeSetupDialog.cpp
@@ -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();