mirror of
https://github.com/vrcx-team/VRCX.git
synced 2026-04-06 00:32:02 +02:00
fix: Adjust filestream length when writing chunks
This commit is contained in:
@@ -100,6 +100,7 @@ public class PNGFile : IDisposable
|
||||
|
||||
// Write new chunk, append rest of file
|
||||
var chunkBytes = chunk.GetBytes();
|
||||
fileStream.SetLength(fileStream.Length + CHUNK_NONDATA_SIZE + chunk.Length);
|
||||
fileStream.Write(chunkBytes, 0, chunkBytes.Length);
|
||||
fileStream.Write(fileBytes, 0, fileBytes.Length);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user