diff --git a/de4dot-x64/Program.cs b/de4dot-x64/Program.cs index bd728449..4a994031 100644 --- a/de4dot-x64/Program.cs +++ b/de4dot-x64/Program.cs @@ -17,10 +17,22 @@ along with de4dot. If not, see . */ +using System; + namespace de4dot_x64 { class Program { static int Main(string[] args) { - return de4dot.cui.Program.Main(args); + int returnValue = 0; + try + { + returnValue = de4dot.cui.Program.Main(args); + } + catch (Exception ex) + { + Console.WriteLine(ex); + } + + return returnValue; } } } diff --git a/de4dot/Program.cs b/de4dot/Program.cs index 7a9cb796..eec575ac 100644 --- a/de4dot/Program.cs +++ b/de4dot/Program.cs @@ -17,10 +17,23 @@ along with de4dot. If not, see . */ +using System; + namespace de4dot_x86 { class Program { - static int Main(string[] args) { - return de4dot.cui.Program.Main(args); - } + static int Main(string[] args) + { + int returnValue = 0; + try + { + returnValue = de4dot.cui.Program.Main(args); + } + catch (Exception ex) + { + Console.WriteLine(ex); + } + + return returnValue; + } } }