VirtualBox

Changeset 58825 in vbox


Ignore:
Timestamp:
Nov 23, 2015 4:20:48 PM (9 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
104282
Message:

RTFileOpen: fix for r104213

File:
1 edited

Legend:

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

    r58769 r58825  
    144144     * Validate                                                                                                                                       .
    145145     */
     146#ifdef RT_OS_WINDOWS
     147    AssertMsgReturn((fOpen & RTFILE_O_ACCESS_MASK) || (fOpen & RTFILE_O_ACCESS_MASK) == RTFILE_O_ATTR_ONLY, ("Missing RTFILE_O_READ/WRITE/ATTR_ONLY: fOpen=%#llx\n", fOpen), VERR_INVALID_PARAMETER);
     148#else
    146149    AssertMsgReturn(fOpen & RTFILE_O_ACCESS_MASK, ("Missing RTFILE_O_READ/WRITE: fOpen=%#llx\n", fOpen), VERR_INVALID_PARAMETER);
     150#endif
    147151#if defined(RT_OS_WINDOWS) || defined(RT_OS_OS2)
    148152    AssertMsgReturn(!(fOpen & (~(uint64_t)RTFILE_O_VALID_MASK | RTFILE_O_NON_BLOCK)), ("%#llx\n", fOpen), VERR_INVALID_PARAMETER);
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