VirtualBox

Ignore:
Timestamp:
Aug 19, 2023 2:57:05 AM (18 months ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
158845
Message:

IPRT,Storage,Puel: Changed the pfnRead and pfnWrite VFS methods and the RTVfsIoStrmSgRead, RTVfsIoStrmSgWrite, RTVfsFileSgRead and RTVfsFileSgWrite APIs to advance pSgBuf and respect the incoming position just like RTFileSgRead & RTFileSgWrite.

File:
1 edited

Legend:

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

    r99961 r100908  
    439439    size_t cbLeft = cbAdvance;
    440440
    441     while (cbLeft)
     441    while (    cbLeft
     442           || (   pSgBuf->cbSegLeft == 0
     443               && pSgBuf->idxSeg > pSgBuf->cSegs))
    442444    {
    443445        size_t cbThisAdvance = cbLeft;
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