simplewebserver: fixed crash if browser path empty

This commit is contained in:
mattias 2024-01-24 11:25:23 +01:00
parent 7b1e04c5d8
commit b737901aa5

View File

@ -2008,8 +2008,11 @@ begin
exit;
end;
SplitCmdLineParams(Cmd,Params);
Result:=Params[0];
Params.Delete(0);
if Params.Count>0 then
begin
Result:=Params[0];
Params.Delete(0);
end;
end;
swsbkFirefox: Result:=GetBrowserFirefox(URL,Params);
swsbkChrome: Result:=GetBrowserChrome(URL,Params);