VirtualBox

Changeset 107276 in vbox for trunk/src/VBox/Main/src-client


Ignore:
Timestamp:
Dec 10, 2024 12:40:08 PM (6 weeks ago)
Author:
vboxsync
Message:

PDMUsb: bugref:10810 Introduced PDMR3UsbQueryDeviceLun needed by Console::i_onNetworkAdapterChange

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/src-client/ConsoleImpl.cpp

    r107268 r107276  
    16991699            return "3c501";
    17001700        case NetworkAdapterType_UsbNet:
    1701             return "usbnet";
     1701            return "UsbNet";
    17021702        default:
    17031703            AssertFailed();
     
    43574357                    int vrc = VINF_SUCCESS;
    43584358                    if (adapterType == NetworkAdapterType_UsbNet)
    4359                         vrc = ptrVM.vtable()->pfnPDMR3UsbQueryLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase);
     4359                        vrc = ptrVM.vtable()->pfnPDMR3UsbQueryDeviceLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase);
    43604360                    else
    43614361                        vrc = ptrVM.vtable()->pfnPDMR3QueryDeviceLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase);
     
    44684468            const char *pszAdapterName = networkAdapterTypeToName(adapterType);
    44694469            PPDMIBASE pBase;
    4470             int vrc = ptrVM.vtable()->pfnPDMR3QueryLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase);
     4470            int vrc;
     4471            if (adapterType == NetworkAdapterType_UsbNet)
     4472                vrc = ptrVM.vtable()->pfnPDMR3UsbQueryLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase);
     4473            else
     4474                vrc = ptrVM.vtable()->pfnPDMR3QueryLun(ptrVM.rawUVM(), pszAdapterName, ulInstance, 0, &pBase);
    44714475            if (RT_FAILURE(vrc))
    44724476            {
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