Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1965)

Unified Diff: chrome/browser/views/shell_dialogs_win.cc

Issue 4198004: Fix a bug that <input type=file multiple> doesn't accept many files.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698