Commit 09e56ec4 authored by mmenke@chromium.org's avatar mmenke@chromium.org

Replace CHECK in NetworkChangeNotifierWin::WatchForAddressChange

with CHECK_EQ, so on failure, value will appear in minidumps.

BUG=69198
TEST=none

Review URL: http://codereview.chromium.org/7031054

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@86675 0039d316-1c4b-4281-b951-d872f2087c98
parent bc2bbd12
// 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 // Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file. // found in the LICENSE file.
...@@ -163,7 +163,7 @@ void NetworkChangeNotifierWin::OnObjectSignaled(HANDLE object) { ...@@ -163,7 +163,7 @@ void NetworkChangeNotifierWin::OnObjectSignaled(HANDLE object) {
void NetworkChangeNotifierWin::WatchForAddressChange() { void NetworkChangeNotifierWin::WatchForAddressChange() {
HANDLE handle = NULL; HANDLE handle = NULL;
DWORD ret = NotifyAddrChange(&handle, &addr_overlapped_); DWORD ret = NotifyAddrChange(&handle, &addr_overlapped_);
CHECK(ret == ERROR_IO_PENDING); CHECK_EQ(static_cast<DWORD>(ERROR_IO_PENDING), ret);
addr_watcher_.StartWatching(addr_overlapped_.hEvent, this); addr_watcher_.StartWatching(addr_overlapped_.hEvent, this);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment