cefclient: Fix crash when removing extension resource path prefix.

To test: Run `cefclient.exe --use-views --load-extension=set_page_color`
This commit is contained in:
Marshall Greenblatt 2019-10-18 15:00:23 +02:00
parent a4b6ef577e
commit 329facfbdf
1 changed files with 1 additions and 1 deletions

View File

@ -40,7 +40,7 @@ std::string GetInternalPath(const std::string& extension_path) {
std::string internal_path;
if (!resources_path_lower.empty() &&
extension_path_lower.find(extension_path_lower) == 0U) {
extension_path_lower.find(resources_path_lower) == 0U) {
internal_path = extension_path.substr(resources_path_lower.size());
} else {
internal_path = extension_path;