VirtualBox

Ignore:
Timestamp:
Jul 27, 2011 2:34:03 PM (13 years ago)
Author:
vboxsync
Message:

usb/win: fix detection devices w/o drv key

Location:
trunk/src/VBox/HostDrivers/VBoxUSB/win
Files:
3 edited

Legend:

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

    r37431 r38200  
    766766    }
    767767
     768    char nameEmptyBuf = '0';
    768769    LPSTR lpszName = NULL;
    769770    rc = usbLibDevStrDriverKeyGet(hHub, iPort, &lpszName);
    770     if (RT_FAILURE(rc))
    771     {
    772         return rc;
    773     }
    774 
    775     Assert(lpszName);
     771    Assert(!!lpszName == !!RT_SUCCESS(rc));
     772    if (!lpszName)
     773        lpszName = &nameEmptyBuf;
    776774
    777775    PUSB_CONFIGURATION_DESCRIPTOR pCfgDr = NULL;
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.cpp

    r37757 r38200  
    258258            else
    259259            {
    260                 AssertFailed();
     260                Log(("IoGetDeviceObjectPointer returned Status (0x%x) for %S returned\n", Status, szwHubName));
    261261            }
    262262        }
  • trunk/src/VBox/HostDrivers/VBoxUSB/win/mon/VBoxUsbMon.h

    r37038 r38200  
    3232
    3333#include "../cmn/VBoxDrvTool.h"
    34 
    35 #ifdef Log
    36 # undef Log
    37 # define Log(_m) DbgPrint _m
    38 #endif
    39 
    40 #ifdef LogRel
    41 # undef LogRel
    42 # define LogRel(_m) DbgPrint _m
    43 #endif
    44 
    45 #ifdef LogFlow
    46 # undef LogFlow
    47 # define LogFlow(_m) DbgPrint _m
    48 #endif
    49 
    5034#include "../cmn/VBoxUsbTool.h"
    5135
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