Implemented another way to get current process filename

This commit is contained in:
2019-07-15 10:47:09 +03:00
parent 9003157a0f
commit f0a5d509ea
@@ -391,7 +391,7 @@ namespace SystemExtensions.Security
ProcessStartInfo proc = new ProcessStartInfo();
proc.UseShellExecute = true;
proc.WorkingDirectory = Environment.CurrentDirectory;
proc.FileName = Process.GetCurrentProcess().StartInfo.FileName;
proc.FileName = Process.GetCurrentProcess().MainModule.FileName;
proc.Verb = "runas";