Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(19)

Unified Diff: chrome_elf/blacklist/blacklist_interceptions.cc

Issue 138903022: Cleanup browser blacklist code (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Work when blacklist is length 0 Created 6 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome_elf/blacklist/blacklist.cc ('k') | chrome_elf/blacklist/test/blacklist_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome_elf/blacklist/blacklist_interceptions.cc
diff --git a/chrome_elf/blacklist/blacklist_interceptions.cc b/chrome_elf/blacklist/blacklist_interceptions.cc
index d0f64ea3721c0da47c368529ef6c53d254f12b60..6b01438b9261b088175db7be7a46eafc686d504e 100644
--- a/chrome_elf/blacklist/blacklist_interceptions.cc
+++ b/chrome_elf/blacklist/blacklist_interceptions.cc
@@ -35,8 +35,8 @@ FARPROC GetNtDllExportByName(const char* export_name) {
}
bool DllMatch(const base::string16& module_name) {
- for (int i = 0; i < blacklist::g_troublesome_dlls_cur_index; ++i) {
- if (module_name == blacklist::g_troublesome_dlls[i])
+ for (int i = 0; blacklist::g_troublesome_dlls[i] != NULL; ++i) {
+ if (_wcsicmp(module_name.c_str(), blacklist::g_troublesome_dlls[i]) == 0)
return true;
}
return false;
« no previous file with comments | « chrome_elf/blacklist/blacklist.cc ('k') | chrome_elf/blacklist/test/blacklist_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698