Skip to content

Commit fcc46e7

Browse files
committed
Ensure stale arguments are not passed to executable file on launch
1 parent bfd0afa commit fcc46e7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

Files UWP/Interacts/Interaction.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -361,6 +361,7 @@ public static async Task LaunchExe(string ApplicationPath)
361361
{
362362
Debug.WriteLine("Launching EXE in FullTrustProcess");
363363
ApplicationData.Current.LocalSettings.Values["Application"] = ApplicationPath;
364+
ApplicationData.Current.LocalSettings.Values["Arguments"] = null;
364365
await FullTrustProcessLauncher.LaunchFullTrustProcessForCurrentAppAsync();
365366
}
366367

ProcessLauncher/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ static void Main(string[] args)
1717
Process process = new Process();
1818
process.StartInfo.UseShellExecute = false;
1919
process.StartInfo.FileName = executable;
20-
if(arguments != "")
20+
if(!string.IsNullOrWhiteSpace(arguments))
2121
{
2222
process.StartInfo.CreateNoWindow = false;
2323
process.StartInfo.Arguments = arguments;

0 commit comments

Comments
 (0)