mirror of
https://github.com/Mauler125/r5sdk.git
synced 2025-02-09 19:15:03 +01:00
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:
parent
71b7770968
commit
0fe6af008c
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user