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

Unified Diff: base/win/registry.cc

Issue 9601001: Coverity: Fix dead code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 10 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/win/registry.cc
diff --git a/base/win/registry.cc b/base/win/registry.cc
index c96f804602afde8c22dcef721ad48a1bc0ea5ffd..3f6a22367d498847c95b793599d855b52210552d 100644
--- a/base/win/registry.cc
+++ b/base/win/registry.cc
@@ -224,7 +224,7 @@ LONG RegKey::ReadValues(const wchar_t* name,
DWORD type = REG_MULTI_SZ;
DWORD size = 0;
- LONG result = ReadValue(name, NULL, &size, NULL);
+ LONG result = ReadValue(name, NULL, &size, &type);
if (FAILED(result) || size == 0)
return result;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698