- Timestamp:
- Apr 3, 2020 3:41:58 PM (5 years ago)
- svn:sync-xref-src-repo-rev:
- 136853
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxService/VBoxServiceControlSession.cpp
r83508 r83534 322 322 { 323 323 fFlags |= (uCreationMode << RTFILE_O_CREATE_MODE_SHIFT) & RTFILE_O_CREATE_MODE_MASK; 324 /* If we're opening a file in read-only mode, strip truncation mode. 325 * rtFileRecalcAndValidateFlags() will validate it anyway, but avoid asserting in debug builds. */ 326 if (fFlags & RTFILE_O_READ) 327 fFlags &= ~RTFILE_O_TRUNCATE; 324 328 rc = RTFileOpen(&pFile->hFile, pFile->szName, fFlags); 325 329 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.