mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-02-16 12:10:41 +01:00
Fix index out of bounds with dialog accept_types description (fixes #3779)
This commit is contained in:
parent
b90f0048da
commit
6459917c0a
@ -515,9 +515,11 @@ CefFileDialogManager::MaybeRunDelegate(
|
|||||||
ext_str += FilePathTypeToString16(FILE_PATH_LITERAL(".") + ext);
|
ext_str += FilePathTypeToString16(FILE_PATH_LITERAL(".") + ext);
|
||||||
}
|
}
|
||||||
accept_extensions.push_back(ext_str);
|
accept_extensions.push_back(ext_str);
|
||||||
|
if (descriptions.size() == extensions.size()) {
|
||||||
accept_descriptions.push_back(descriptions[i]);
|
accept_descriptions.push_back(descriptions[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
CefRefPtr<CefFileDialogCallbackImpl> callbackImpl(
|
CefRefPtr<CefFileDialogCallbackImpl> callbackImpl(
|
||||||
new CefFileDialogCallbackImpl(std::move(callback)));
|
new CefFileDialogCallbackImpl(std::move(callback)));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user