From 21b51cac20efc5c487dad6a053683f33410a3492 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Miskolczi=20Rich=C3=A1rd?= Date: Fri, 31 Mar 2023 07:18:07 +0200 Subject: [PATCH] Syntax error fixes --- Password Manager/ProcessBuilder.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/Password Manager/ProcessBuilder.cs b/Password Manager/ProcessBuilder.cs index a454bac..41aefa6 100644 --- a/Password Manager/ProcessBuilder.cs +++ b/Password Manager/ProcessBuilder.cs @@ -34,8 +34,8 @@ namespace Password_Manager FileName = procName, Arguments = args, UseShellExecute = false, - RedirectStandardOutput = true; - CreateNoWindow = true; + RedirectStandardOutput = true, + CreateNoWindow = true } }; @@ -51,8 +51,8 @@ namespace Password_Manager return builder.ToString(); } catch (Exception e) { - MessageBox.Show(ex.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); - ProcessFailed.Invoke(e); + MessageBox.Show(e.ToString(), "Error", MessageBoxButtons.OK, MessageBoxIcon.Error); + ProcessFailed?.Invoke(e); } return null;