Changeset 62699 in vbox for trunk/src/VBox/HostDrivers/VBoxUSB/win/dev
- Timestamp:
- Jul 29, 2016 4:01:21 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/VBoxUsbDev.cpp
r62698 r62699 302 302 } 303 303 304 #ifdef DEBUG304 #ifdef VBOX_STRICT 305 305 DECLHIDDEN(VOID) vboxUsbPnPStateGbgChange(ENMVBOXUSB_PNPSTATE enmOldState, ENMVBOXUSB_PNPSTATE enmNewState) 306 306 { … … 309 309 { 310 310 case ENMVBOXUSB_PNPSTATE_STARTED: 311 Assert( enmOldState == ENMVBOXUSB_PNPSTATE_START_PENDING312 ||ENMVBOXUSB_PNPSTATE_REMOVE_PENDING313 ||ENMVBOXUSB_PNPSTATE_STOPPED314 ||ENMVBOXUSB_PNPSTATE_STOP_PENDING);311 Assert( enmOldState == ENMVBOXUSB_PNPSTATE_START_PENDING 312 || enmOldState == ENMVBOXUSB_PNPSTATE_REMOVE_PENDING 313 || enmOldState == ENMVBOXUSB_PNPSTATE_STOPPED 314 || enmOldState == ENMVBOXUSB_PNPSTATE_STOP_PENDING); 315 315 break; 316 316 case ENMVBOXUSB_PNPSTATE_STOP_PENDING: … … 327 327 break; 328 328 case ENMVBOXUSB_PNPSTATE_REMOVED: 329 Assert( enmOldState == ENMVBOXUSB_PNPSTATE_REMOVE_PENDING330 329 Assert( enmOldState == ENMVBOXUSB_PNPSTATE_REMOVE_PENDING 330 || enmOldState == ENMVBOXUSB_PNPSTATE_SURPRISE_REMOVED); 331 331 break; 332 332 default: 333 Assert Breakpoint();333 AssertFailed(); 334 334 break; 335 335 } -
trunk/src/VBox/HostDrivers/VBoxUSB/win/dev/VBoxUsbDev.h
r62490 r62699 18 18 #ifndef ___VBoxUsbDev_h___ 19 19 #define ___VBoxUsbDev_h___ 20 20 21 #include "VBoxUsbCmn.h" 22 #include <VBox/cdefs.h> 21 23 #include <iprt/assert.h> 22 24 … … 45 47 AssertCompile(sizeof (ENMVBOXUSB_PNPSTATE) == sizeof (uint32_t)); 46 48 47 #ifdef DEBUG49 #ifdef VBOX_STRICT 48 50 DECLHIDDEN(VOID) vboxUsbPnPStateGbgChange(ENMVBOXUSB_PNPSTATE enmOld, ENMVBOXUSB_PNPSTATE enmNew); 49 51 # define VBOXUSB_PNP_GBG_STATE_CHANGE(_old, _new) vboxUsbPnPStateGbgChange((_old), (_new))
Note:
See TracChangeset
for help on using the changeset viewer.