diff options
Diffstat (limited to 'chrome/browser/views')
-rw-r--r-- | chrome/browser/views/shell_dialogs_win.cc | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/chrome/browser/views/shell_dialogs_win.cc b/chrome/browser/views/shell_dialogs_win.cc index d3fe7ae..bc5f92b 100644 --- a/chrome/browser/views/shell_dialogs_win.cc +++ b/chrome/browser/views/shell_dialogs_win.cc @@ -891,10 +891,11 @@ bool SelectFileDialogImpl::RunOpenMultiFileDialog( ofn.lStructSize = sizeof(ofn); ofn.hwndOwner = owner; - wchar_t filename[MAX_PATH] = L""; + scoped_array<wchar_t> filename(new wchar_t[UNICODE_STRING_MAX_CHARS]); + filename[0] = 0; - ofn.lpstrFile = filename; - ofn.nMaxFile = MAX_PATH; + ofn.lpstrFile = filename.get(); + ofn.nMaxFile = UNICODE_STRING_MAX_CHARS; // We use OFN_NOCHANGEDIR so that the user can rename or delete the directory // without having to close Chrome first. ofn.Flags = OFN_PATHMUSTEXIST | OFN_FILEMUSTEXIST | OFN_EXPLORER |