VirtualBox

Ignore:
Timestamp:
Apr 24, 2010 3:06:02 PM (15 years ago)
Author:
vboxsync
Message:

Runtime/Sg: quit the loop if we reached the end of the buffer

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/misc/sg.cpp

    r28145 r28687  
    359359        pvSeg = sgBufGet(pSgBuf, &cbThisSeg);
    360360
     361        if (!cbThisSeg)
     362        {
     363            Assert(!pvSeg);
     364            break;
     365        }
     366
    361367        AssertMsg(cbThisSeg <= cbData, ("Impossible!\n"));
    362368
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