Changeset 62709 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win/dev
- Timestamp:
- Jul 29, 2016 8:41:17 PM (8 years ago)
- Location:
- trunk/src/VBox/HostDrivers/VBoxUSB/win/dev
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbPnP.cpp
r62490 r62709 179 179 if (pDevCaps->Version < 1 || pDevCaps->Size < sizeof (*pDevCaps)) 180 180 { 181 Assert (0);181 AssertFailed(); 182 182 /* todo: return more appropriate status ?? */ 183 183 return STATUS_UNSUCCESSFUL; -
trunk/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbPwr.cpp
r62490 r62709 3 3 * USB Power state Handling 4 4 */ 5 5 6 /* 6 7 * Copyright (C) 2011-2016 Oracle Corporation … … 42 43 static NTSTATUS vboxUsbPwrMnPowerSequence(IN PVBOXUSBDEV_EXT pDevExt, IN PIRP pIrp) 43 44 { 44 Assert (0);45 AssertFailed(); 45 46 return vboxUsbPwrMnDefault(pDevExt, pIrp); 46 47 } … … 87 88 88 89 Status = PoRequestPowerIrp(pDevExt->pPDO, pSl->MinorFunction, PwrState, 89 vboxUsbPwrIoDeviceCompletion, pDevCtx, NULL);90 vboxUsbPwrIoDeviceCompletion, pDevCtx, NULL); 90 91 Assert(NT_SUCCESS(Status)); 91 92 if (NT_SUCCESS(Status)) 92 {93 93 return STATUS_MORE_PROCESSING_REQUIRED; 94 }95 94 96 95 vboxUsbMemFree(pDevCtx); … … 118 117 { 119 118 case IRP_MN_SET_POWER: 120 {121 119 pDevExt->DdiState.PwrState.PowerState.SystemState = pSl->Parameters.Power.State.SystemState; 122 120 break; 123 } 121 124 122 default: 125 {126 123 break; 127 }128 124 } 129 125 … … 288 284 default: 289 285 { 290 Assert (0);286 AssertFailed(); 291 287 return vboxUsbPwrMnDefault(pDevExt, pIrp); 292 288 } … … 356 352 default: 357 353 { 358 Assert (0);354 AssertFailed(); 359 355 return vboxUsbPwrMnDefault(pDevExt, pIrp); 360 356 } … … 395 391 default: 396 392 { 397 // Assert (0);393 // AssertFailed(); 398 394 return vboxUsbPwrMnDefault(pDevExt, pIrp); 399 395 } … … 435 431 } 436 432 } 433
Note:
See TracChangeset
for help on using the changeset viewer.