diff options
Diffstat (limited to 'chrome_elf/blacklist/blacklist.cc')
-rw-r--r-- | chrome_elf/blacklist/blacklist.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/chrome_elf/blacklist/blacklist.cc b/chrome_elf/blacklist/blacklist.cc index e6450c1..824a9e9 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) { + 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. |