VirtualBox

Changeset 10601 in vbox


Ignore:
Timestamp:
Jul 14, 2008 3:03:03 PM (16 years ago)
Author:
vboxsync
Message:

Fixed bogus return code check (string callback can fail if there's no handler!)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/VMM/VMMAll/IOMAllMMIO.cpp

    r10600 r10601  
    14951495        const RTGCUINTREG cTransfersOrg = cTransfers;
    14961496        rc = IOMIOPortReadString(pVM, uPort, &GCPtrDst, &cTransfers, cbTransfer);
    1497         AssertRC(rc); Assert(cTransfers <= cTransfersOrg);
     1497        AssertRCReturn(rc, rc);
     1498        Assert(cTransfers <= cTransfersOrg);
    14981499        pRegFrame->rdi += (cTransfersOrg - cTransfers) * cbTransfer;
    14991500    }
     
    15031504#endif
    15041505
    1505     while (cTransfers && rc == VINF_SUCCESS)
     1506    while (cTransfers)
    15061507    {
    15071508        uint32_t u32Value;
     
    16561657        const RTGCUINTREG cTransfersOrg = cTransfers;
    16571658        rc = IOMIOPortWriteString(pVM, uPort, &GCPtrSrc, &cTransfers, cbTransfer);
    1658         AssertRC(rc); Assert(cTransfers <= cTransfersOrg);
     1659        AssertRCReturn(rc, rc);
     1660        Assert(cTransfers <= cTransfersOrg);
    16591661        pRegFrame->rsi += (cTransfersOrg - cTransfers) * cbTransfer;
    16601662    }
     
    16641666#endif
    16651667
    1666     while (cTransfers && rc == VINF_SUCCESS)
     1668    while (cTransfers)
    16671669    {
    16681670        uint32_t u32Value;
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