VirtualBox

Changeset 51292 in vbox for trunk


Ignore:
Timestamp:
May 19, 2014 2:53:48 PM (11 years ago)
Author:
vboxsync
Message:

Main/Console: fix medium change for virtual USB DVD drives, still hacky

Location:
trunk/src/VBox/Main/src-client
Files:
2 edited

Legend:

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

    r51219 r51292  
    37843784    /* Determine the base path for the device instance. */
    37853785    PCFGMNODE pCtlInst;
    3786     pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "Devices/%s/%u/", pcszDevice, uInstance);
     3786    if (strcmp(pcszDevice, "Msd"))
     3787        pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "Devices/%s/%u/", pcszDevice, uInstance);
     3788    else
     3789        pCtlInst = CFGMR3GetChildF(CFGMR3GetRootU(pUVM), "USB/%s/", pcszDevice, uInstance);
    37873790    AssertReturn(pCtlInst, VERR_INTERNAL_ERROR);
    37883791
  • trunk/src/VBox/Main/src-client/ConsoleImpl2.cpp

    r51217 r51292  
    36243624                    /* Unmount existing media only for floppy and DVD drives. */
    36253625                    PPDMIBASE pBase;
    3626                     rc = PDMR3QueryLun(pUVM, pcszDevice, uInstance, uLUN, &pBase);
     3626                    if (enmBus == StorageBus_USB)
     3627                        rc = PDMR3UsbQueryLun(pUVM, pcszDevice, uInstance, uLUN, &pBase);
     3628                    else
     3629                        rc = PDMR3QueryLun(pUVM, pcszDevice, uInstance, uLUN, &pBase);
    36273630                    if (RT_FAILURE(rc))
    36283631                    {
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