Seek ye first the buffer for hashes

This commit is contained in:
Matt Nadareski
2019-12-04 21:23:01 -08:00
parent cf70f4fd4f
commit 2a6b850aae
2 changed files with 53 additions and 43 deletions

View File

@@ -4188,7 +4188,8 @@ namespace SabreTools.Library.DatFiles
}
// Seek to the beginning of the stream
fileStream.Seek(0, SeekOrigin.Begin);
if (fileStream.CanSeek)
fileStream.Seek(0, SeekOrigin.Begin);
Globals.Logger.User("Matches found for '{0}', rebuilding accordingly...", Path.GetFileName(datItem.Name));
rebuilt = true;