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

Unified Diff: content/browser/system_message_window_win.cc

Issue 10933084: Fix device broadcast DCHECK. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 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: content/browser/system_message_window_win.cc
diff --git a/content/browser/system_message_window_win.cc b/content/browser/system_message_window_win.cc
index 211e728cd04532d230c9857c85906e8677b61186..e410a3a31ffea7d594130d570fca0b59b0fc7eae 100644
--- a/content/browser/system_message_window_win.cc
+++ b/content/browser/system_message_window_win.cc
@@ -111,8 +111,10 @@ LRESULT SystemMessageWindowWin::OnDeviceChange(UINT event_type, LPARAM data) {
// notify the system monitor.
DEV_BROADCAST_DEVICEINTERFACE* device_interface =
reinterpret_cast<DEV_BROADCAST_DEVICEINTERFACE*>(data);
- DCHECK_EQ(device_interface->dbcc_devicetype,
- static_cast<DWORD>(DBT_DEVTYP_DEVICEINTERFACE));
+ if (device_interface->dbcc_devicetype !=
+ static_cast<DWORD>(DBT_DEVTYP_DEVICEINTERFACE)) {
piman 2012/09/14 00:37:44 nit: Is the static_cast needed anymore? If not, pl
vandebo (ex-Chrome) 2012/09/14 00:43:05 Done.
+ return TRUE;
+ }
for (int i = 0; i < arraysize(kDeviceCategoryMap); ++i) {
if (kDeviceCategoryMap[i].device_category ==
device_interface->dbcc_classguid) {
« 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