VirtualBox

Ignore:
Timestamp:
May 13, 2011 9:50:31 AM (14 years ago)
Author:
vboxsync
Message:

usb: fix query hub name

File:
1 edited

Legend:

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

    r37001 r37060  
    413413    PUSB_NODE_CONNECTION_NAME pName = (PUSB_NODE_CONNECTION_NAME)RTMemAllocZ(Name.ActualLength);
    414414    if (!pName)
     415    {
     416        AssertFailed();
    415417        return VERR_OUT_OF_RESOURCES;
     418    }
    416419
    417420    int rc = VINF_SUCCESS;
     421    pName->ConnectionIndex = iPort;
    418422    if (DeviceIoControl(hHub, IOCTL_USB_GET_NODE_CONNECTION_NAME, pName, Name.ActualLength, pName, Name.ActualLength, &cbReturned, NULL))
    419423    {
     
    425429    else
    426430    {
     431        AssertFailed();
    427432        rc = VERR_GENERAL_FAILURE;
    428433    }
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