Changeset 67206 in vbox for trunk/src/VBox/Runtime/common/zip
- Timestamp:
- Jun 1, 2017 1:14:26 PM (8 years ago)
- svn:sync-xref-src-repo-rev:
- 115888
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Runtime/common/zip/tarvfswriter.cpp
r67166 r67206 1161 1161 AssertRCReturn(rc, rc); 1162 1162 1163 Assert(pThis->aHdrs[0].Gnu.isextended == 0); 1164 1163 1165 /* 1164 1166 * Walk the sparse spans, fill and write headers one by one. … … 1179 1181 if (iSparse >= cSparse) 1180 1182 { 1181 pThis->aHdrs[0].Gnu.isextended = 1; /* more headers to come */ 1182 if (cSparse == RT_ELEMENTS(pThis->aHdrs[0].Gnu.sparse)) 1183 if (cSparse != RT_ELEMENTS(pThis->aHdrs[0].Gnu.sparse)) 1184 pThis->aHdrs[0].GnuSparse.isextended = 1; /* more headers to come */ 1185 else 1186 { 1187 pThis->aHdrs[0].Gnu.isextended = 1; /* more headers to come */ 1183 1188 rc = rtZipTarFssWriter_ChecksumHdr(&pThis->aHdrs[0]); 1189 } 1184 1190 if (RT_SUCCESS(rc)) 1185 1191 rc = RTVfsIoStrmWrite(pThis->hVfsIos, &pThis->aHdrs[0], sizeof(pThis->aHdrs[0]), true /*fBlocking*/, NULL); … … 1206 1212 if (iSparse != 0) 1207 1213 { 1208 Assert(pThis->aHdrs[0].Gnu .isextended == 0);1214 Assert(pThis->aHdrs[0].GnuSparse.isextended == 0); 1209 1215 rc = RTVfsIoStrmWrite(pThis->hVfsIos, &pThis->aHdrs[0], sizeof(pThis->aHdrs[0]), true /*fBlocking*/, NULL); 1210 1216 }
Note:
See TracChangeset
for help on using the changeset viewer.