| Index: chrome/browser/conflicts/module_database_win.cc
|
| diff --git a/chrome/browser/conflicts/module_database_win.cc b/chrome/browser/conflicts/module_database_win.cc
|
| index c5a090f3a2680e31ca6180a35690e5780baf4431..e6b828cf4d87d5948f9ed2243030b4f887b9de0a 100644
|
| --- a/chrome/browser/conflicts/module_database_win.cc
|
| +++ b/chrome/browser/conflicts/module_database_win.cc
|
| @@ -226,7 +226,8 @@ void ModuleDatabase::RemoveLoadAddressById(
|
| // This handles the special case of removing the max element in O(1), as
|
| // FindLoadAddressIndexById processes the elements in reverse order.
|
| size_t i = FindLoadAddressIndexById(module_id, *load_addresses);
|
| - RemoveLoadAddressByIndex(i, load_addresses);
|
| + if (i != kInvalidIndex)
|
| + RemoveLoadAddressByIndex(i, load_addresses);
|
| }
|
|
|
| // static
|
|
|