summaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorkushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 18:20:09 +0000
committerkushi.p@gmail.com <kushi.p@gmail.com@0039d316-1c4b-4281-b951-d872f2087c98>2011-04-28 18:20:09 +0000
commit5e0be64ec9fa6b9255c70d8982c9469cab48e4d8 (patch)
tree05196e9f8920cfa7203e8fead723f6eeee446788 /app
parent961ac948a36146baafc52f957dfd187b19d2cd04 (diff)
downloadchromium_src-5e0be64ec9fa6b9255c70d8982c9469cab48e4d8.zip
chromium_src-5e0be64ec9fa6b9255c70d8982c9469cab48e4d8.tar.gz
chromium_src-5e0be64ec9fa6b9255c70d8982c9469cab48e4d8.tar.bz2
Improving logging in /app, /base, /crypto and /ipc. Updating plain DCHECK() usages for DCHECK_EQ/LE/GE() equivalents.
BUG=58409 TEST=None Review URL: http://codereview.chromium.org/6880166 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@83362 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'app')
-rw-r--r--app/win/iat_patch_function.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/win/iat_patch_function.cc b/app/win/iat_patch_function.cc
index a78a357..9abd6f2 100644
--- a/app/win/iat_patch_function.cc
+++ b/app/win/iat_patch_function.cc
@@ -1,4 +1,4 @@
-// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -215,7 +215,7 @@ IATPatchFunction::IATPatchFunction()
IATPatchFunction::~IATPatchFunction() {
if (NULL != intercept_function_) {
DWORD error = Unpatch();
- DCHECK(error == NO_ERROR);
+ DCHECK_EQ(static_cast<DWORD>(NO_ERROR), error);
}
}
@@ -256,7 +256,7 @@ DWORD IATPatchFunction::Unpatch() {
DWORD error = RestoreImportedFunction(intercept_function_,
original_function_,
iat_thunk_);
- DCHECK(NO_ERROR == error);
+ DCHECK_EQ(static_cast<DWORD>(NO_ERROR), error);
// Hands off the intercept if we fail to unpatch.
// If IATPatchFunction::Unpatch fails during RestoreImportedFunction