Index: chrome/browser/views/shell_dialogs_win.cc |
=================================================================== |
--- chrome/browser/views/shell_dialogs_win.cc (revision 63865) |
+++ chrome/browser/views/shell_dialogs_win.cc (working copy) |
@@ -891,10 +891,11 @@ |
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 |