mirror of
https://github.com/MrUnknownDE/VRCX.git
synced 2026-04-27 10:43:48 +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
|
// Write new chunk, append rest of file
|
||||||
var chunkBytes = chunk.GetBytes();
|
var chunkBytes = chunk.GetBytes();
|
||||||
|
fileStream.SetLength(fileStream.Length + CHUNK_NONDATA_SIZE + chunk.Length);
|
||||||
fileStream.Write(chunkBytes, 0, chunkBytes.Length);
|
fileStream.Write(chunkBytes, 0, chunkBytes.Length);
|
||||||
fileStream.Write(fileBytes, 0, fileBytes.Length);
|
fileStream.Write(fileBytes, 0, fileBytes.Length);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user