diff --git a/de4dot.cui/FilesDeobfuscator.cs b/de4dot.cui/FilesDeobfuscator.cs index f7106c4d..e16a2d35 100644 --- a/de4dot.cui/FilesDeobfuscator.cs +++ b/de4dot.cui/FilesDeobfuscator.cs @@ -229,6 +229,11 @@ namespace de4dot.cui { catch (EndOfStreamException) { return false; } + catch (IOException) { + if (isFromPossibleFiles) + Logger.Instance.Log(false, null, LoggerEvent.Warning, "The file isn't a .NET PE file: {0}", file.Filename); + return false; // Not a .NET file + } catch (Exception ex) { Logger.Instance.Log(false, null, LoggerEvent.Warning, "Could not load file ({0}): {1}", ex.GetType(), file.Filename); return false;