Skip to content

Commit

Permalink
Fix TryFindVersion
Browse files Browse the repository at this point in the history
  • Loading branch information
affederaffe committed Aug 15, 2024
1 parent 542a1ad commit 88af6c1
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ private static bool TrySeekToKey(BinaryReader reader, string key)
pos = 0;
}

return stream.Position == stream.Length; // we went through the entire stream without finding the key
return stream.Position != stream.Length; // we went through the entire stream without finding the key
}

private static bool TryFindVersion(BinaryReader reader, [NotNullWhen(true)] out string? version)
Expand Down

0 comments on commit 88af6c1

Please sign in to comment.