VirtualBox

Changeset 76902 in vbox for trunk/src/VBox/Runtime/r3/win


Ignore:
Timestamp:
Jan 19, 2019 2:25:38 PM (6 years ago)
Author:
vboxsync
Message:

IPRT/RTFileRead: Set pcbRead when returning immediately on a zero byte read. bugref:9172

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/win/fileio-win.cpp

    r76553 r76902  
    416416{
    417417    if (cbToRead <= 0)
     418    {
     419        if (pcbRead)
     420            *pcbRead = 0;
    418421        return VINF_SUCCESS;
     422    }
    419423    ULONG cbToReadAdj = (ULONG)cbToRead;
    420424    AssertReturn(cbToReadAdj == cbToRead, VERR_NUMBER_TOO_BIG);
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