diff --git a/BinaryObjectScanner/FileType/NewExecutable.cs b/BinaryObjectScanner/FileType/NewExecutable.cs
index c1f8c102..24568a9e 100644
--- a/BinaryObjectScanner/FileType/NewExecutable.cs
+++ b/BinaryObjectScanner/FileType/NewExecutable.cs
@@ -46,14 +46,9 @@ namespace BinaryObjectScanner.FileType
}
///
+ /// Uses the already-generated wrapper
public bool Extract(string file, string outDir, bool includeDebug)
- {
- if (!File.Exists(file))
- return false;
-
- using var fs = File.Open(file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
- return Extract(fs, file, outDir, includeDebug);
- }
+ => Extract(null, file, outDir, includeDebug);
///
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)
diff --git a/BinaryObjectScanner/FileType/PortableExecutable.cs b/BinaryObjectScanner/FileType/PortableExecutable.cs
index 0e93a258..53f48bae 100644
--- a/BinaryObjectScanner/FileType/PortableExecutable.cs
+++ b/BinaryObjectScanner/FileType/PortableExecutable.cs
@@ -46,14 +46,9 @@ namespace BinaryObjectScanner.FileType
}
///
+ /// Uses the already-generated wrapper
public bool Extract(string file, string outDir, bool includeDebug)
- {
- if (!File.Exists(file))
- return false;
-
- using var fs = File.Open(file, FileMode.Open, FileAccess.Read, FileShare.ReadWrite);
- return Extract(fs, file, outDir, includeDebug);
- }
+ => Extract(null, file, outDir, includeDebug);
///
public bool Extract(Stream? stream, string file, string outDir, bool includeDebug)