Use beginning seek

This commit is contained in:
Matt Nadareski
2021-09-13 23:16:57 -07:00
parent 630f628598
commit 57499002d2
2 changed files with 2 additions and 2 deletions

View File

@@ -81,7 +81,7 @@ namespace BurnOutSharp.FileType
}
catch
{
Utilities.AppendToDictionary(protections, file, "[File too large to be scanned]");
Utilities.AppendToDictionary(protections, file, "[Out of memory attempting to open]");
return protections;
}

View File

@@ -266,7 +266,7 @@ namespace BurnOutSharp
try
{
fs.Read(magic, 0, 16);
fs.Seek(-16, SeekOrigin.Current);
fs.Seek(0, SeekOrigin.Begin);
}
catch
{