mirror of
https://github.com/SabreTools/SabreTools.Serialization.git
synced 2026-09-23 15:24:56 +00:00
Fix logic bug with end of file check
This commit is contained in:
@@ -166,7 +166,7 @@ namespace SabreTools.Serialization.Wrappers
|
||||
return false;
|
||||
|
||||
// If we have an invalid position
|
||||
if (position < 0 || _initialPosition + position >= GetEndOfFile())
|
||||
if (position < 0 || position >= GetEndOfFile())
|
||||
return false;
|
||||
|
||||
return _dataSource switch
|
||||
|
||||
Reference in New Issue
Block a user