Fix index out of bounds with dialog accept_types description (fixes #3779)
This commit is contained in:
parent
4deb4879a8
commit
1d7a1f96bf
|
@ -515,7 +515,9 @@ CefFileDialogManager::MaybeRunDelegate(
|
|||
ext_str += FilePathTypeToString16(FILE_PATH_LITERAL(".") + ext);
|
||||
}
|
||||
accept_extensions.push_back(ext_str);
|
||||
accept_descriptions.push_back(descriptions[i]);
|
||||
if (descriptions.size() == extensions.size()) {
|
||||
accept_descriptions.push_back(descriptions[i]);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue