mirror of
https://github.com/Xevion/easy7zip.git
synced 2025-12-06 13:14:59 -06:00
4.63
This commit is contained in:
committed by
Kornel Lesiński
parent
c1f1243a70
commit
3a524e5ba2
@@ -49,7 +49,7 @@ void CBaseRecordVector::Reserve(int newCapacity)
|
||||
p = new unsigned char[newSize];
|
||||
if (p == 0)
|
||||
throw 1052355;
|
||||
int numRecordsToMove = _size;
|
||||
int numRecordsToMove = (_size < newCapacity ? _size : newCapacity);
|
||||
memcpy(p, _items, _itemSize * numRecordsToMove);
|
||||
}
|
||||
delete [](unsigned char *)_items;
|
||||
|
||||
Reference in New Issue
Block a user