* Patch from reporter of bug ID #13924 to fix arguments with spaces if no argv is declared.

git-svn-id: trunk@13246 -
This commit is contained in:
michael 2009-06-07 08:53:36 +00:00
parent 17c4dc5feb
commit 0021183eb6

View File

@ -91,7 +91,10 @@ begin
s:='';
for i:=1 to paramcount do
begin
s:=s+paramstr(i)+' ';
if Pos(' ', paramstr(i)) > 0 then
s := s + '"' + paramstr(i) + '" '
else
s:=s+paramstr(i)+' ';
end;
s:=s+#0;
cmdline:=@s[1];