VirtualBox

Changeset 49789 in vbox for trunk/src/VBox/VMM/VMMR3


Ignore:
Timestamp:
Dec 5, 2013 12:51:16 PM (11 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
91109
Message:

VMM: don't ignore the error code of RTAvl*DoWithAll() if the callback function actually returns codes other than VINF_SUCCESS, in particular not when saving the PATM state

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMR3/PATMSSM.cpp

    r49473 r49789  
    720720    AssertMsg(nrFixupRecs == pPatch->patch.nrFixups, ("Fixup inconsistency! counted %d vs %d\n", nrFixupRecs, pPatch->patch.nrFixups));
    721721#endif
    722     RTAvlPVDoWithAll(&pPatch->patch.FixupTree, true, patmSaveFixupRecords, pVM);
     722    rc = RTAvlPVDoWithAll(&pPatch->patch.FixupTree, true, patmSaveFixupRecords, pVM);
     723    AssertRCReturn(rc, rc);
    723724
    724725#ifdef VBOX_STRICT
     
    729730
    730731    RTAvlU32DoWithAll(&pPatch->patch.Patch2GuestAddrTree, true, patmSaveP2GLookupRecords, pVM);
     732    AssertRCReturn(rc, rc);
     733
    731734    return VINF_SUCCESS;
    732735}
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette