From 57499002d29f6f33c3e9f39782428a6626aa1c03 Mon Sep 17 00:00:00 2001 From: Matt Nadareski Date: Mon, 13 Sep 2021 23:16:57 -0700 Subject: [PATCH] Use beginning seek --- BurnOutSharp/FileType/Executable.cs | 2 +- BurnOutSharp/Scanner.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/BurnOutSharp/FileType/Executable.cs b/BurnOutSharp/FileType/Executable.cs index 06598f46..e1bd2b90 100644 --- a/BurnOutSharp/FileType/Executable.cs +++ b/BurnOutSharp/FileType/Executable.cs @@ -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; } diff --git a/BurnOutSharp/Scanner.cs b/BurnOutSharp/Scanner.cs index 67c3b408..9815e6f9 100644 --- a/BurnOutSharp/Scanner.cs +++ b/BurnOutSharp/Scanner.cs @@ -266,7 +266,7 @@ namespace BurnOutSharp try { fs.Read(magic, 0, 16); - fs.Seek(-16, SeekOrigin.Current); + fs.Seek(0, SeekOrigin.Begin); } catch {