Changeset 84207 in vbox for trunk/src/VBox/Runtime/common/zip/tarvfswriter.cpp
- Timestamp:
- May 8, 2020 11:54:10 AM (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/zip/tarvfswriter.cpp
r84192 r84207 2134 2134 AssertPtrReturn(phVfsFss, VERR_INVALID_HANDLE); 2135 2135 *phVfsFss = NIL_RTVFSFSSTREAM; 2136 Assert PtrReturn(hVfsFile != NIL_RTVFSFILE, VERR_INVALID_HANDLE);2136 AssertReturn(hVfsFile != NIL_RTVFSFILE, VERR_INVALID_HANDLE); 2137 2137 AssertReturn(enmFormat > RTZIPTARFORMAT_INVALID && enmFormat < RTZIPTARFORMAT_END, VERR_INVALID_PARAMETER); 2138 2138 AssertReturn(!(fFlags & ~RTZIPTAR_C_VALID_MASK), VERR_INVALID_FLAGS); … … 2159 2159 size_t const cbThis = sizeof(*pThis) + (fFlags & RTZIPTAR_C_UPDATE ? sizeof(*pThis->pRead) : 0); 2160 2160 RTVFSFSSTREAM hVfsFss; 2161 int rc = RTVfsNewFsStream(&g_rtZipTarFssOps, cbThis, NIL_RTVFS, NIL_RTVFSLOCK, RTFILE_O_WRITE, 2161 int rc = RTVfsNewFsStream(&g_rtZipTarFssOps, cbThis, NIL_RTVFS, NIL_RTVFSLOCK, 2162 fFlags & RTZIPTAR_C_UPDATE ? RTFILE_O_READWRITE : RTFILE_O_WRITE, 2162 2163 &hVfsFss, (void **)&pThis); 2163 2164 if (RT_SUCCESS(rc))
Note:
See TracChangeset
for help on using the changeset viewer.