VirtualBox

Changeset 22969 in vbox


Ignore:
Timestamp:
Sep 11, 2009 11:00:59 PM (15 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52242
Message:

Runtime/fileaio-linux: Negate the result code. errno values are positive but the result code in the iocb's is negative to indicate an error

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/r3/linux/fileaio-linux.cpp

    r21505 r22969  
    726726             */
    727727            if (RT_UNLIKELY(aPortEvents[i].rc < 0))
    728                 pReqInt->Rc = RTErrConvertFromErrno(aPortEvents[i].rc);
     728                pReqInt->Rc = RTErrConvertFromErrno(-aPortEvents[i].rc); /* Convert to positive value. */
    729729            else
    730730            {
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