VirtualBox

Changeset 37064 in vbox


Ignore:
Timestamp:
May 13, 2011 10:27:17 AM (14 years ago)
Author:
vboxsync
Message:

usb: disable annoying assertions with ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/lib/VBoxUsbLib-win.cpp

    r37060 r37064  
    354354    if (!DeviceIoControl(hHub, IOCTL_USB_GET_NODE_CONNECTION_DRIVERKEY_NAME, &Name, sizeof (Name), &Name, sizeof (Name), &cbReturned, NULL))
    355355    {
    356 #ifdef DEBUG_misha
     356#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    357357        DWORD winEr = GetLastError();
    358358        AssertMsgFailed((__FUNCTION__": DeviceIoControl 1 fail winEr (%d)\n", winEr));
     
    485485        DWORD winEr = GetLastError();
    486486        LogRel((__FUNCTION__": DeviceIoControl 1 fail winEr (%d)\n", winEr));
    487 #ifdef DEBUG_misha
     487#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    488488        AssertFailed();
    489489#endif
     
    522522            DWORD winEr = GetLastError();
    523523            LogRel((__FUNCTION__": DeviceIoControl 2 fail winEr (%d)\n", winEr));
    524 #ifdef DEBUG_misha
     524#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    525525            AssertFailed();
    526526#endif
     
    572572        DWORD winEr = GetLastError();
    573573        LogRel((__FUNCTION__": DeviceIoControl 1 fail winEr (%d)\n", winEr));
    574 #ifdef DEBUG_misha
     574#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    575575            AssertFailed();
    576576#endif
     
    644644{
    645645    int rc = usbLibDevStrDrEntryGet(hHub, iPort, 0, 0, ppList);
     646#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    646647    AssertRC(rc);
     648#endif
    647649    if (RT_FAILURE(rc))
    648650        return rc;
     
    779781    {
    780782        rc = usbLibDevStrDrEntryGetAll(hHub, iPort, &pConInfo->DeviceDescriptor, pCfgDr, &pList);
     783#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    781784        AssertRC(rc);
     785#endif
    782786    }
    783787
     
    923927                 DWORD winEr = GetLastError();
    924928                 /* ERROR_DEVICE_NOT_CONNECTED -> device was removed just now */
    925 #ifdef DEBUG_misha
     929#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    926930                 AssertMsg(winEr == ERROR_DEVICE_NOT_CONNECTED, (__FUNCTION__": DeviceIoControl failed winEr (%d)\n", winEr));
    927931#endif
     
    965969                pDevs->pszAddress = RTStrDup(pDevInfos->szName);
    966970            }
    967 #ifdef DEBUG_misha
     971#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    968972            else
    969973            {
     
    10761080    if (g_VBoxUsbGlobal.hMonitor == INVALID_HANDLE_VALUE)
    10771081    {
    1078 #ifdef DEBUG_misha
     1082#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    10791083        AssertFailed();
    10801084#endif
     
    11131117    if (g_VBoxUsbGlobal.hMonitor == INVALID_HANDLE_VALUE)
    11141118    {
    1115 #ifdef DEBUG_misha
     1119#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    11161120        AssertFailed();
    11171121#endif
     
    14251429            {
    14261430                LogRel((__FUNCTION__": USB Service not found\n"));
    1427 #ifdef DEBUG_misha
     1431#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    14281432                AssertFailed();
    14291433#endif
     
    14661470    if (g_VBoxUsbGlobal.hMonitor == INVALID_HANDLE_VALUE)
    14671471    {
    1468 #ifdef DEBUG_misha
     1472#ifdef VBOX_WITH_ANNOYING_USB_ASSERTIONS
    14691473        AssertFailed();
    14701474#endif
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette