Index: chrome_elf/blacklist/blacklist.cc |
diff --git a/chrome_elf/blacklist/blacklist.cc b/chrome_elf/blacklist/blacklist.cc |
index 8107ffcab39abeaebde41f90c73a90beefc36ac4..fced32dcd0034ecf976c9946c154d053ebfd9e8d 100644 |
--- a/chrome_elf/blacklist/blacklist.cc |
+++ b/chrome_elf/blacklist/blacklist.cc |
@@ -371,7 +371,7 @@ bool AddDllsFromRegistryToBlacklist() { |
if (result != ERROR_SUCCESS) |
return false; |
- // We add dlls from the registry to the blacklist, and then clear registry. |
+ // We add dlls from the registry to the blacklist. |
DWORD value_len; |
DWORD name_len = MAX_PATH; |
std::vector<wchar_t> name_buffer(name_len); |
@@ -393,10 +393,7 @@ bool AddDllsFromRegistryToBlacklist() { |
} |
} |
- // Delete the finch registry key to clear the values. |
- result = ::RegDeleteKey(key, L""); |
- |
- ::RegCloseKey(key); |
+ result = ::RegCloseKey(key); |
return result == ERROR_SUCCESS; |
grt (UTC plus 2)
2014/06/19 20:06:59
i don't understand the return value from this func
krstnmnlsn
2014/06/19 22:13:15
The return value is used by blacklist_test.cc. The
grt (UTC plus 2)
2014/06/20 14:40:59
since the return value isn't used by the productio
krstnmnlsn
2014/06/20 18:02:58
Okay I'll do that.
|
} |