VirtualBox

Changeset 12997 in vbox for trunk/src/VBox/VMM/VMMAll


Ignore:
Timestamp:
Oct 6, 2008 9:31:20 AM (16 years ago)
Author:
vboxsync
Message:

Fixed regressions in return code checking

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/PGMAllBth.h

    r12994 r12997  
    162162
    163163    rc = PGMShwSyncLongModePDPtr(pVM, (RTGCUINTPTR)pvFault, pPml4eSrc, &PdpeSrc, &pPDDst);
    164     AssertRCReturn(rc, rc);
     164    AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
    165165    Assert(pPDDst);
    166166# elif PGM_SHW_TYPE == PGM_TYPE_EPT
     
    28382838
    28392839        int rc = PGMShwSyncLongModePDPtr(pVM, GCPtrPage, pPml4eSrc, &PdpeSrc, &pPDDst);
    2840         if (rc != VINF_SUCCESS)
    2841         {
    2842             AssertRC(rc);
    2843             return rc;
    2844         }
     2840        AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
    28452841        Assert(pPDDst);
    28462842        PdeDst = pPDDst->a[iPDDst];
     
    29572953
    29582954    rc = PGMShwSyncLongModePDPtr(pVM, GCPtrPage, pPml4eSrc, &PdpeSrc, &pPDDst);
    2959     if (rc != VINF_SUCCESS)
    2960     {
    2961         AssertRC(rc);
    2962         return rc;
    2963     }
     2955    AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
    29642956    Assert(pPDDst);
    29652957    pPdeDst = &pPDDst->a[iPDDst];
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