Update to 7-Zip Version 21.04

- first test... no release!!!
This commit is contained in:
Tino Reichardt
2021-11-06 22:17:34 +01:00
parent 0f6bcfd2ed
commit 09497b7ba0
152 changed files with 6166 additions and 1341 deletions

View File

@@ -498,7 +498,24 @@ bool COutFile::Write(const void *data, UInt32 size, UInt32 &processedSize) throw
data = (const void *)((const unsigned char *)data + processedLoc);
size -= processedLoc;
}
while (size > 0);
while (size != 0);
return true;
}
bool COutFile::WriteFull(const void *data, size_t size) throw()
{
do
{
UInt32 processedLoc = 0;
const UInt32 sizeCur = (size > kChunkSizeMax ? kChunkSizeMax : (UInt32)size);
if (!WritePart(data, sizeCur, processedLoc))
return false;
if (processedLoc == 0)
return (size == 0);
data = (const void *)((const unsigned char *)data + processedLoc);
size -= processedLoc;
}
while (size != 0);
return true;
}