Fix logic bug with end of file check

This commit is contained in:
Matt Nadareski
2025-08-19 07:36:33 -04:00
parent d49e18a83e
commit 2e337891da

View File

@@ -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