VirtualBox

Changeset 25272 in vbox for trunk/src/VBox/VMM/PATM


Ignore:
Timestamp:
Dec 9, 2009 2:57:54 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
55811
Message:

PATMSSM.cpp: -Wshadow

File:
1 edited

Legend:

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

    r23817 r25272  
    855855        pPatchRec->patch.FixupTree = 0;
    856856        pPatchRec->patch.nrFixups  = 0;    /* increased by patmPatchAddReloc32 */
    857         for (int i=0;i<patch.patch.nrFixups;i++)
     857        for (int j=0;j<patch.patch.nrFixups;j++)
    858858        {
    859859            RELOCREC rec;
     
    881881                {
    882882                    Assert(pPatchRec->patch.cbPatchJump == SIZEOF_NEARJUMP32 || pPatchRec->patch.cbPatchJump == SIZEOF_NEAR_COND_JUMP32);
    883                     unsigned offset = (pPatchRec->patch.cbPatchJump == SIZEOF_NEARJUMP32) ? 1 : 2;
     883                    unsigned offset2 = (pPatchRec->patch.cbPatchJump == SIZEOF_NEARJUMP32) ? 1 : 2;
    884884
    885885                    /** @todo This will fail & crash in patmCorrectFixup if the page isn't present
     
    887887                     *        (pPrivInstrGC=0x8069e051). */
    888888                    AssertLogRelMsg(pPatchRec->patch.pPrivInstrHC, ("%RRv rc=%Rrc uState=%u\n", pPatchRec->patch.pPrivInstrGC, rc2, pPatchRec->patch.uState));
    889                     rec.pRelocPos = pPatchRec->patch.pPrivInstrHC + offset;
     889                    rec.pRelocPos = pPatchRec->patch.pPrivInstrHC + offset2;
    890890                    pFixup        = (RTRCPTR *)rec.pRelocPos;
    891891                }
     
    909909
    910910            pPatchRec->patch.nrPatch2GuestRecs = 0;    /* incremented by patmr3AddP2GLookupRecord */
    911             for (uint32_t i=0;i<nrPatch2GuestRecs;i++)
     911            for (uint32_t j=0;j<nrPatch2GuestRecs;j++)
    912912            {
    913913#if 0
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