Changeset 73108 in vbox
- Timestamp:
- Jul 13, 2018 6:06:12 AM (7 years ago)
- svn:sync-xref-src-repo-rev:
- 123687
- Location:
- trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/iprt/vfslowlevel.h
r69977 r73108 316 316 /** The structure version (RTVFSOBJSETOPS_VERSION). */ 317 317 uint32_t uVersion; 318 /** The offset to the RTVFSOBJOPS structure. */319 int32_toffObjOps;318 /** The offset back to the RTVFSOBJOPS structure. */ 319 uint32_t offObjOps; 320 320 321 321 /** -
trunk/src/VBox/Runtime/common/vfs/vfsbase.cpp
r73097 r73108 120 120 AssertPtrNull((pIoStreamOps)->pfnZeroFill); \ 121 121 Assert((pIoStreamOps)->uEndMarker == RTVFSIOSTREAMOPS_VERSION); \ 122 } while (0) 123 124 /** Asserts that the VFS I/O stream vtable is valid. */ 125 #define RTVFSFILE_ASSERT_OPS(pFileOps, a_enmType) \ 126 do { \ 127 RTVFSIOSTREAM_ASSERT_OPS(&(pFileOps)->Stream, a_enmType); \ 128 Assert((pFileOps)->uVersion == RTVFSFILEOPS_VERSION); \ 129 Assert((pFileOps)->fReserved == 0); \ 130 AssertPtr((pFileOps)->pfnSeek); \ 131 AssertPtrNull((pFileOps)->pfnQuerySize); \ 132 AssertPtrNull((pFileOps)->pfnSetSize); \ 133 AssertPtrNull((pFileOps)->pfnQueryMaxSize); \ 134 Assert((pFileOps)->uEndMarker == RTVFSFILEOPS_VERSION); \ 122 135 } while (0) 123 136 … … 3848 3861 * Validate the input, be extra strict in strict builds. 3849 3862 */ 3850 AssertPtr(pFileOps); 3851 AssertReturn(pFileOps->uVersion == RTVFSFILEOPS_VERSION, VERR_VERSION_MISMATCH); 3852 AssertReturn(pFileOps->uEndMarker == RTVFSFILEOPS_VERSION, VERR_VERSION_MISMATCH); 3853 Assert(!pFileOps->fReserved); 3854 RTVFSIOSTREAM_ASSERT_OPS(&pFileOps->Stream, RTVFSOBJTYPE_FILE); 3863 RTVFSFILE_ASSERT_OPS(pFileOps, RTVFSOBJTYPE_FILE); 3855 3864 Assert(cbInstance > 0); 3856 3865 Assert(fOpen & (RTFILE_O_ACCESS_MASK | RTFILE_O_ACCESS_ATTR_MASK));
Note:
See TracChangeset
for help on using the changeset viewer.