Chromium Code Reviews| Index: chrome_elf/blacklist/blacklist.cc |
| diff --git a/chrome_elf/blacklist/blacklist.cc b/chrome_elf/blacklist/blacklist.cc |
| index e6450c115ff059d45324d15d78368d1ab097ffc7..824a9e95a87d54df9fcf2fe4bfb0a1e7840844a5 100644 |
| --- a/chrome_elf/blacklist/blacklist.cc |
| +++ b/chrome_elf/blacklist/blacklist.cc |
| @@ -230,6 +230,14 @@ bool IsBlacklistInitialized() { |
| return g_blacklist_initialized; |
| } |
| +int GetBlacklistIndex(const wchar_t* dll_name) { |
| + for (int i = 0; i < kTroublesomeDllsMaxCount, g_troublesome_dlls[i]; ++i) { |
|
Nico
2014/10/28 02:55:47
you mean &&, not ,
robertshield
2014/10/28 03:27:29
indeed! fixed with https://codereview.chromium.org
|
| + if (_wcsicmp(dll_name, g_troublesome_dlls[i]) == 0) |
| + return i; |
| + } |
| + return -1; |
| +} |
| + |
| bool AddDllToBlacklist(const wchar_t* dll_name) { |
| int blacklist_size = BlacklistSize(); |
| // We need to leave one space at the end for the null pointer. |