diff options
Diffstat (limited to 'chrome/browser')
-rw-r--r-- | chrome/browser/views/shell_dialogs_win.cc | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/chrome/browser/views/shell_dialogs_win.cc b/chrome/browser/views/shell_dialogs_win.cc index b4df9ed..0c3abcf 100644 --- a/chrome/browser/views/shell_dialogs_win.cc +++ b/chrome/browser/views/shell_dialogs_win.cc @@ -324,9 +324,13 @@ void SelectFileDialogImpl::ExecuteSelectFile( params.run_state.owner, &path); } else if (params.type == SELECT_SAVEAS_FILE) { + std::wstring path_as_wstring = path.ToWStringHack(); success = win_util::SaveFileAsWithFilter(params.run_state.owner, params.default_path.ToWStringHack(), params.filter, - params.default_extension, false, &filter_index, &path.ToWStringHack()); + params.default_extension, false, &filter_index, &path_as_wstring); + if(success) { + path = FilePath::FromWStringHack(path_as_wstring); + } DisableOwner(params.run_state.owner); } else if (params.type == SELECT_OPEN_FILE) { success = RunOpenFileDialog(params.title, params.filter, |