diff --git a/BeefTools/WasmLaunch/src/Program.bf b/BeefTools/WasmLaunch/src/Program.bf index 8d302774..88d82f73 100644 --- a/BeefTools/WasmLaunch/src/Program.bf +++ b/BeefTools/WasmLaunch/src/Program.bf @@ -73,7 +73,7 @@ class Program ProcessStartInfo procInfo = scope ProcessStartInfo(); procInfo.UseShellExecute = false; procInfo.SetFileName(exePath); - procInfo.SetArguments(scope $"{Process.CurrentId} {htmlPath}"); + procInfo.SetArguments(scope $"{Process.CurrentId} \"{htmlPath}\""); procInfo.ActivateWindow = false; var process = scope SpawnedProcess(); diff --git a/IDE/src/IDEApp.bf b/IDE/src/IDEApp.bf index d2d614c5..e1b3215c 100644 --- a/IDE/src/IDEApp.bf +++ b/IDE/src/IDEApp.bf @@ -12307,7 +12307,7 @@ namespace IDE if (launchPath.EndsWith(".html")) { - arguments.Set(launchPath); + arguments.Set(scope $"\"{launchPath}\""); launchPath.Set(scope $"{gApp.mInstallDir}/WasmLaunch.exe"); }