Changeset 37064 in vbox
- Timestamp:
- May 13, 2011 10:27:17 AM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp
r37060 r37064 354 354 if (!DeviceIoControl(hHub, IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME, &Name, sizeof (Name), &Name, sizeof (Name), &cbReturned, NULL)) 355 355 { 356 #ifdef DEBUG_misha356 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 357 357 DWORD winEr = GetLastError(); 358 358 AssertMsgFailed((__FUNCTION__": DeviceIoControl 1 fail winEr (%d)\n", winEr)); … … 485 485 DWORD winEr = GetLastError(); 486 486 LogRel((__FUNCTION__": DeviceIoControl 1 fail winEr (%d)\n", winEr)); 487 #ifdef DEBUG_misha487 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 488 488 AssertFailed(); 489 489 #endif … … 522 522 DWORD winEr = GetLastError(); 523 523 LogRel((__FUNCTION__": DeviceIoControl 2 fail winEr (%d)\n", winEr)); 524 #ifdef DEBUG_misha524 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 525 525 AssertFailed(); 526 526 #endif … … 572 572 DWORD winEr = GetLastError(); 573 573 LogRel((__FUNCTION__": DeviceIoControl 1 fail winEr (%d)\n", winEr)); 574 #ifdef DEBUG_misha574 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 575 575 AssertFailed(); 576 576 #endif … … 644 644 { 645 645 int rc = usbLibDevStrDrEntryGet(hHub, iPort, 0, 0, ppList); 646 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 646 647 AssertRC(rc); 648 #endif 647 649 if (RT_FAILURE(rc)) 648 650 return rc; … … 779 781 { 780 782 rc = usbLibDevStrDrEntryGetAll(hHub, iPort, &pConInfo->DeviceDescriptor, pCfgDr, &pList); 783 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 781 784 AssertRC(rc); 785 #endif 782 786 } 783 787 … … 923 927 DWORD winEr = GetLastError(); 924 928 /* ERROR_DEVICE_NOT_CONNECTED -> device was removed just now */ 925 #ifdef DEBUG_misha929 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 926 930 AssertMsg(winEr == ERROR_DEVICE_NOT_CONNECTED, (__FUNCTION__": DeviceIoControl failed winEr (%d)\n", winEr)); 927 931 #endif … … 965 969 pDevs->pszAddress = RTStrDup(pDevInfos->szName); 966 970 } 967 #ifdef DEBUG_misha971 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 968 972 else 969 973 { … … 1076 1080 if (g_VBoxUsbGlobal.hMonitor == INVALID_HANDLE_VALUE) 1077 1081 { 1078 #ifdef DEBUG_misha1082 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 1079 1083 AssertFailed(); 1080 1084 #endif … … 1113 1117 if (g_VBoxUsbGlobal.hMonitor == INVALID_HANDLE_VALUE) 1114 1118 { 1115 #ifdef DEBUG_misha1119 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 1116 1120 AssertFailed(); 1117 1121 #endif … … 1425 1429 { 1426 1430 LogRel((__FUNCTION__": USB Service not found\n")); 1427 #ifdef DEBUG_misha1431 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 1428 1432 AssertFailed(); 1429 1433 #endif … … 1466 1470 if (g_VBoxUsbGlobal.hMonitor == INVALID_HANDLE_VALUE) 1467 1471 { 1468 #ifdef DEBUG_misha1472 #ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS 1469 1473 AssertFailed(); 1470 1474 #endif
Note:
See TracChangeset
for help on using the changeset viewer.