Skip to content

Commit ebd7018

Browse files
committed
added actual parameters
1 parent 79f3734 commit ebd7018

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

ReClass.NET/Program.cs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,8 +69,7 @@ static void Main(string[] args)
6969

7070
if(Settings.RunAsAdmin && !WinUtil.IsAdministrator)
7171
{
72-
//todo: maybe better paramaters than just the first one?
73-
WinUtil.RunElevated(Process.GetCurrentProcess().MainModule.FileName, CommandLineArgs.FileName);
72+
WinUtil.RunElevated(Process.GetCurrentProcess().MainModule.FileName, args.Length > 0 ? string.Join(" ", args) : null);
7473
return;
7574
}
7675

0 commit comments

Comments
 (0)