Commit e41f38f9 authored by Patrick Monette's avatar Patrick Monette Committed by Commit Bot

Fix DCHECK when using SELECT_OPEN_MULTI_FILE on Windows

Bug: 908812
Change-Id: Ide5ecaee607468d953cfec54c1c465bd2ed8f96e
Reviewed-on: https://chromium-review.googlesource.com/c/1351945
Commit-Queue: Scott Violet <sky@chromium.org>
Reviewed-by: default avatarScott Violet <sky@chromium.org>
Cr-Commit-Position: refs/heads/master@{#611361}
parent c92f994b
...@@ -220,7 +220,7 @@ bool RunOpenFileDialog(HWND owner, ...@@ -220,7 +220,7 @@ bool RunOpenFileDialog(HWND owner,
if (FAILED(selected_items->GetCount(&result_count))) if (FAILED(selected_items->GetCount(&result_count)))
return false; return false;
DCHECK(result_count == 1 || (dialog_options & FOS_ALLOWMULTISELECT) == 0); DCHECK(result_count == 1 || (dialog_options & FOS_ALLOWMULTISELECT));
std::vector<base::FilePath> result(result_count); std::vector<base::FilePath> result(result_count);
for (DWORD i = 0; i < result_count; ++i) { for (DWORD i = 0; i < result_count; ++i) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment