VirtualBox

Changeset 24312 in vbox


Ignore:
Timestamp:
Nov 4, 2009 10:54:40 AM (15 years ago)
Author:
vboxsync
Message:

Fixed loading/saving of cpuid

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r24295 r24312  
    12741274                                      CpuIdLeafsList &ll)
    12751275{
    1276     xml::NodesLoop nl1(elmCpuid, "CpuId");
     1276    xml::NodesLoop nl1(elmCpuid, "CpuIdLeaf");
    12771277    const xml::ElementNode *pelmCpuIdLeaf;
    12781278    while ((pelmCpuIdLeaf = nl1.forAllNodes()))
     
    15441544                pelmCPUChild->getAttributeValue("enabled", hw.fSyntheticCpu);
    15451545            if ((pelmCPUChild = pelmHwChild->findChildElement("CpuIdTree")))
    1546                 readCpuIdTree(*pelmHwChild, hw.llCpuIdLeafs);
     1546                readCpuIdTree(*pelmCPUChild, hw.llCpuIdLeafs);
    15471547        }
    15481548        else if (pelmHwChild->nameEquals("Memory"))
     
    24252425        pelmCPU->createChild("SyntheticCpu")->setAttribute("enabled", hw.fSyntheticCpu);
    24262426    pelmCPU->setAttribute("count", hw.cCPUs);
    2427 
    2428     xml::ElementNode *pelmCpuIdTree = pelmHardware->createChild("CpuId");
     2427    xml::ElementNode *pelmCpuIdTree = pelmCPU->createChild("CpuIdTree");
    24292428    for (CpuIdLeafsList::const_iterator it = hw.llCpuIdLeafs.begin();
    24302429         it != hw.llCpuIdLeafs.end();
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