Windows: Add default extension to file name in save dialog (issue #1646)

This commit is contained in:
Marshall Greenblatt 2015-06-03 14:35:06 -04:00
parent c5b8b8b9c8
commit 373180fef2
1 changed files with 3 additions and 0 deletions

View File

@ -511,6 +511,9 @@ bool RunSaveFileDialog(const CefBrowserHostImpl::FileChooserParams& params,
ofn.lpstrFilter = filter.c_str();
// Indices into |lpstrFilter| start at 1.
ofn.nFilterIndex = *filter_index + 1;
// If a filter is specified and the default file name is changed then append
// a file extension to the new name.
ofn.lpstrDefExt = L"";
}
bool success = !!GetSaveFileName(&ofn);