diff --git a/BurnOutSharp/ProtectionFind.cs b/BurnOutSharp/ProtectionFind.cs
index fd683979..ae4ddeb7 100644
--- a/BurnOutSharp/ProtectionFind.cs
+++ b/BurnOutSharp/ProtectionFind.cs
@@ -144,8 +144,8 @@ namespace BurnOutSharp
///
/// Scan a path for indications of copy protection
///
- ///
- ///
+ /// Path to scan file and folder names
+ /// True if the path is a directory, false otherwise
///
public static string ScanPath(string path, bool isDirectory)
{
@@ -383,9 +383,16 @@ namespace BurnOutSharp
/// True to include scanned copy protection position, false otherwise (default)
public static string ScanContent(string file, bool includePosition = false)
{
- using (FileStream fs = File.OpenRead(file))
+ try
{
- return ScanContent(fs, file, includePosition);
+ using (FileStream fs = File.OpenRead(file))
+ {
+ return ScanContent(fs, file, includePosition);
+ }
+ }
+ catch
+ {
+ return null;
}
}