Skip to content

Commit

Permalink
Wrong seek offset
Browse files Browse the repository at this point in the history
  • Loading branch information
Dextinfire committed Sep 29, 2024
1 parent 7fb5212 commit c38c1c5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/io/physicalfilestream.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit c38c1c5

Please sign in to comment.