VirtualBox

Changeset 48021 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Aug 23, 2013 12:02:52 PM (11 years ago)
Author:
vboxsync
Message:

IPRT/vfsbase: RTVfsUtilPumpIoStreams(): properly detect detect EOF

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp

    r44529 r48021  
    15551555        if (RT_FAILURE(rc))
    15561556            break;
    1557         if (rc == VINF_EOF && cbRead == 0)
     1557        if (cbRead == 0) /* will never return VINF_EOF as we passed cbRead so the
     1558                            caller is expected to handle partial reads. */
    15581559            break;
    15591560
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