儲存庫 vbox 的更動 62699
- 時間撮記:
- 2016-7-29 下午04:01:21 (8 年 以前)
- 位置:
- trunk/src/VBox/HostDrivers/VBoxUSB/win/dev
- 檔案:
-
- 修改 2 筆資料
圖例:
- 未更動
- 新增
- 刪除
-
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))
注意:
瀏覽 TracChangeset
來幫助您使用更動檢視器