VirtualBox

Ignore:
Timestamp:
Oct 9, 2008 11:22:53 AM (16 years ago)
Author:
vboxsync
Message:

Corrected return value checks for PGMShwGetEPTPDPtr.

File:
1 edited

Legend:

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

    r13121 r13122  
    179179
    180180    rc = PGMShwGetEPTPDPtr(pVM, (RTGCUINTPTR)pvFault, NULL, &pPDDst);
    181     AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
     181    if (rc != VINF_SUCCESS)
     182    {
     183        AssertRC(rc);
     184        return rc;
     185    }
    182186    Assert(pPDDst);
    183187#  endif
     
    18621866
    18631867    int rc = PGMShwGetEPTPDPtr(pVM, GCPtrPage, NULL, &pPDDst);
    1864     AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
     1868    if (rc != VINF_SUCCESS)
     1869    {
     1870        AssertRC(rc);
     1871        return rc;
     1872    }
    18651873    Assert(pPDDst);
    18661874    PdeDst = pPDDst->a[iPDDst];
     
    27052713
    27062714    rc = PGMShwGetEPTPDPtr(pVM, GCPtrPage, &pPdptDst, &pPDDst);
    2707     AssertReturn(rc == VINF_SUCCESS /* *must* test for VINF_SUCCESS!! */, rc);
     2715    if (rc != VINF_SUCCESS)
     2716    {
     2717        AssertRC(rc);
     2718        return rc;
     2719    }
    27082720    Assert(pPDDst);
    27092721
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