Changeset 19350 in vbox for trunk/src/VBox/Runtime/generic
- Timestamp:
- May 5, 2009 2:44:04 AM (16 years ago)
- Location:
- trunk/src/VBox/Runtime/generic
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/generic/RTFileReadAllByHandleEx-generic.cpp
r8954 r19350 43 43 RTDECL(int) RTFileReadAllByHandleEx(RTFILE File, RTFOFF off, RTFOFF cbMax, uint32_t fFlags, void **ppvFile, size_t *pcbFile) 44 44 { 45 AssertReturn(! fFlags, VERR_INVALID_PARAMETER);45 AssertReturn(!(fFlags & ~RTFILE_RDALL_VALID_MASK), VERR_INVALID_PARAMETER); 46 46 47 47 /* -
trunk/src/VBox/Runtime/generic/RTFileReadAllEx-generic.cpp
r8925 r19350 41 41 RTDECL(int) RTFileReadAllEx(const char *pszFilename, RTFOFF off, RTFOFF cbMax, uint32_t fFlags, void **ppvFile, size_t *pcbFile) 42 42 { 43 AssertReturn(! fFlags, VERR_INVALID_PARAMETER);43 AssertReturn(!(fFlags & ~RTFILE_RDALL_VALID_MASK), VERR_INVALID_PARAMETER); 44 44 45 45 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)); 47 47 if (RT_SUCCESS(rc)) 48 48 {
Note:
See TracChangeset
for help on using the changeset viewer.