VirtualBox

Changeset 19350 in vbox for trunk/src/VBox/Runtime/generic


Ignore:
Timestamp:
May 5, 2009 2:44:04 AM (16 years ago)
Author:
vboxsync
Message:

IPRT,tstDisasm-2: defined flags for RTFileReadAllEx and RTFileReadAllHandleEx.

Location:
trunk/src/VBox/Runtime/generic
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Runtime/generic/RTFileReadAllByHandleEx-generic.cpp

    r8954 r19350  
    4343RTDECL(int) RTFileReadAllByHandleEx(RTFILE File, RTFOFF off, RTFOFF cbMax, uint32_t fFlags, void **ppvFile, size_t *pcbFile)
    4444{
    45     AssertReturn(!fFlags, VERR_INVALID_PARAMETER);
     45    AssertReturn(!(fFlags & ~RTFILE_RDALL_VALID_MASK), VERR_INVALID_PARAMETER);
    4646
    4747    /*
  • trunk/src/VBox/Runtime/generic/RTFileReadAllEx-generic.cpp

    r8925 r19350  
    4141RTDECL(int) RTFileReadAllEx(const char *pszFilename, RTFOFF off, RTFOFF cbMax, uint32_t fFlags, void **ppvFile, size_t *pcbFile)
    4242{
    43     AssertReturn(!fFlags, VERR_INVALID_PARAMETER);
     43    AssertReturn(!(fFlags & ~RTFILE_RDALL_VALID_MASK), VERR_INVALID_PARAMETER);
    4444
    4545    RTFILE File;
    46     int rc = RTFileOpen(&File, pszFilename, RTFILE_O_READ | RTFILE_O_OPEN | RTFILE_O_DENY_NONE);
     46    int rc = RTFileOpen(&File, pszFilename, RTFILE_O_READ | RTFILE_O_OPEN | (fFlags & RTFILE_RDALL_O_DENY_MASK));
    4747    if (RT_SUCCESS(rc))
    4848    {
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