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

Unified Diff: ceee/ie/common/ceee_util.cc

Issue 6090006: Regkey functions return error code instead of bool (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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
Index: ceee/ie/common/ceee_util.cc
===================================================================
--- ceee/ie/common/ceee_util.cc (revision 70414)
+++ ceee/ie/common/ceee_util.cc (working copy)
@@ -23,7 +23,8 @@
path += clsid;
base::win::RegKey key;
- return key.Open(HKEY_CLASSES_ROOT, path.c_str(), KEY_QUERY_VALUE);
+ LONG result = key.Open(HKEY_CLASSES_ROOT, path.c_str(), KEY_QUERY_VALUE);
+ return result == ERROR_SUCCESS;
}
} // namespace ceee_util

Powered by Google App Engine
This is Rietveld 408576698