Changeset 91091 in vbox
- Timestamp:
- Sep 2, 2021 1:06:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/vfs/vfsmemory.cpp
r82968 r91091 172 172 if (!pExtent || off < pExtent->off) 173 173 { 174 /* Check whether the offset is before the first extent first. */ 175 pExtent = RTListGetFirst(&pThis->ExtentHead, RTVFSMEMEXTENT, Entry); 176 if ( pExtent 177 && off < pExtent->off) 178 { 179 *pfHit = false; 180 return pExtent; 181 } 182 174 183 /* Consider the last entry first (for writes). */ 175 184 pExtent = RTListGetLast(&pThis->ExtentHead, RTVFSMEMEXTENT, Entry); … … 484 493 if (!cbLeftToWrite) 485 494 break; 495 pbSrc += cbZeros; 486 496 487 497 Assert(!pExtent || offUnsigned <= pExtent->off);
Note:
See TracChangeset
for help on using the changeset viewer.