Changeset 69207 in vbox for trunk/src/bldprogs/scmstream.cpp
- Timestamp:
- Oct 24, 2017 1:06:06 PM (7 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/bldprogs/scmstream.cpp
r69166 r69207 93 93 94 94 /* allocate stuff */ 95 size_t cbEstimate = pRelatedStream 96 ? pRelatedStream->cb + pRelatedStream->cb / 10 97 : _64K; 95 size_t cbEstimate = !pRelatedStream ? _64K 96 : pRelatedStream->cb > 0 ? pRelatedStream->cb + pRelatedStream->cb / 10 : 64; 98 97 cbEstimate = RT_ALIGN(cbEstimate, _4K); 99 98 pStream->pch = (char *)RTMemAlloc(cbEstimate); … … 104 103 : cbEstimate / 24; 105 104 cLinesEstimate = RT_ALIGN(cLinesEstimate, 512); 105 if (cLinesEstimate == 0) 106 cLinesEstimate = 16; 106 107 pStream->paLines = (PSCMSTREAMLINE)RTMemAlloc(cLinesEstimate * sizeof(SCMSTREAMLINE)); 107 108 if (pStream->paLines) … … 255 256 return false; 256 257 if (!pStream->cb) 257 return false;258 return true; 258 259 return true; 259 260 }
Note:
See TracChangeset
for help on using the changeset viewer.