VirtualBox

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


Ignore:
Timestamp:
Jul 8, 2011 8:09:58 AM (14 years ago)
Author:
vboxsync
Message:

Main/Console: fix regression introduced by the non-rotational medium support

File:
1 edited

Legend:

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

    r37824 r37828  
    29212921                if (!pDrive)
    29222922                    InsertConfigNode(pCfg, g_apszIDEDrives[uLUN], &pDrive);
    2923                 PCFGMNODE pNonRot = CFGMR3GetChild(pCtlInst, "NonRotationalMedium");
    2924                 if (pNonRot)
    2925                     CFGMR3RemoveNode(pNonRot);
     2923                /* Don't use the RemoveConfigValue wrapper above, as we don't
     2924                 * know if the leaf is present or not. */
     2925                CFGMR3RemoveValue(pDrive,  "NonRotationalMedium");
    29262926                InsertConfigInteger(pDrive, "NonRotationalMedium", !!fNonRotational);
    29272927            }
     
    29322932                if (!pDrive)
    29332933                    InsertConfigNode(pCfg, strPort.c_str(), &pDrive);
    2934                 PCFGMNODE pNonRot = CFGMR3GetChild(pCtlInst, "NonRotationalMedium");
    2935                 if (pNonRot)
    2936                     CFGMR3RemoveNode(pNonRot);
     2934                /* Don't use the RemoveConfigValue wrapper above, as we don't
     2935                 * know if the leaf is present or not. */
     2936                CFGMR3RemoveValue(pDrive,  "NonRotationalMedium");
    29372937                InsertConfigInteger(pDrive, "NonRotationalMedium", !!fNonRotational);
    29382938            }
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