Fix data truncation on VPK unpack

If the chunk if uncompressed, continue the loop instead of breaking out of it. Only 2 files were affected by this bug from original VPK's: 'notosansjp-regular.vfont' and 'notosanstc-regular.vfont'.
This commit is contained in:
Kawe Mazidjatari 2023-05-29 15:56:59 +02:00
parent 71b7770968
commit 0fe6af008c

View File

@ -558,7 +558,7 @@ void CPackedStore::UnpackWorkspace(const VPKDir_t& vDirectory, const string& svW
if (vChunk.m_nCompressedSize == vChunk.m_nUncompressedSize) // Data is not compressed.
{
FileSystem()->Write(pSourceBuffer, int(vChunk.m_nUncompressedSize), hAsset);
break;
continue;
}
size_t nDstLen = ENTRY_MAX_LEN;