Index: chrome_elf/blacklist/blacklist.cc |
diff --git a/chrome_elf/blacklist/blacklist.cc b/chrome_elf/blacklist/blacklist.cc |
index 7244665ce6ff5d3a62fe4fa0f1deaccf62fbcb66..809bfaaae61633d9131deca94402402eeadd1bd0 100644 |
--- a/chrome_elf/blacklist/blacklist.cc |
+++ b/chrome_elf/blacklist/blacklist.cc |
@@ -225,6 +225,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) { |
+ 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. |