From c38c1c592c7bf6fccdf5dd30a7d7bc1b64f39136 Mon Sep 17 00:00:00 2001 From: Dextinfire <> Date: Sun, 29 Sep 2024 02:18:40 -0700 Subject: [PATCH] Wrong seek offset --- src/io/physicalfilestream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/io/physicalfilestream.cpp b/src/io/physicalfilestream.cpp index 778c6a3f..1a548e2d 100644 --- a/src/io/physicalfilestream.cpp +++ b/src/io/physicalfilestream.cpp @@ -61,7 +61,7 @@ int64_t PhysicalFileStream::Seek(int64_t offset, int origin) { absPos = Position + offset; break; case RW_SEEK_END: - absPos = Meta.Size + offset; + absPos = Meta.Size - offset; break; } if (absPos < 0 || absPos > Meta.Size) return IoError_Fail;