VirtualBox

Changeset 36559 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 5, 2011 1:10:31 PM (14 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
70992
Message:

Main/Console: Use the device instance when detaching/attaching a device or the wrong controller is changed when there are multiple of one type

File:
1 edited

Legend:

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

    r36523 r36559  
    28682868                }
    28692869
    2870                 rc = PDMR3DeviceDetach(pVM, pcszDevice, 0, uLUN, PDM_TACH_FLAGS_NOT_HOT_PLUG);
     2870                rc = PDMR3DeviceDetach(pVM, pcszDevice, uInstance, uLUN, PDM_TACH_FLAGS_NOT_HOT_PLUG);
    28712871                if (rc == VERR_PDM_NO_DRIVER_ATTACHED_TO_LUN)
    28722872                    rc = VINF_SUCCESS;
     
    31063106        {
    31073107            /* Attach the new driver. */
    3108             rc = PDMR3DeviceAttach(pVM, pcszDevice, 0, uLUN,
     3108            rc = PDMR3DeviceAttach(pVM, pcszDevice, uInstance, uLUN,
    31093109                                PDM_TACH_FLAGS_NOT_HOT_PLUG, NULL /*ppBase*/);
    31103110            AssertRCReturn(rc, rc);
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