mirror of
https://github.com/reactos/CMake.git
synced 2024-11-24 20:19:53 +00:00
Fix browse button to use correct windows style initial directory
This commit is contained in:
parent
b993cd7fba
commit
cb85eeaa11
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user