瀏覽代碼

* small fix for NIL arg ptr in first executeprocess

marco 21 年之前
父節點
當前提交
3896b0fe05
共有 1 個文件被更改,包括 11 次插入2 次删除
  1. 11 2
      rtl/unix/sysutils.pp

+ 11 - 2
rtl/unix/sysutils.pp

@@ -507,7 +507,13 @@ Begin
        CommandLine:=ComLine;
        CommandLine:=ComLine;
        cmdline2:=StringtoPPChar(CommandLine,1);
        cmdline2:=StringtoPPChar(CommandLine,1);
        cmdline2^:=pchar(Path);
        cmdline2^:=pchar(Path);
-     end;	
+     end
+   else
+     begin
+       getmem(cmdline2,2*sizeof(pchar));
+       cmdline2^:=pchar(Path);
+       cmdline2[1]:=nil; 
+     end;
   {$else}
   {$else}
   if Pos ('"', Path) = 0 then
   if Pos ('"', Path) = 0 then
     CommandLine := '"' + Path + '"'
     CommandLine := '"' + Path + '"'
@@ -629,7 +635,10 @@ end.
 {
 {
 
 
   $Log$
   $Log$
-  Revision 1.37  2004-03-04 22:15:16  marco
+  Revision 1.38  2004-04-20 18:24:32  marco
+   * small fix for NIL arg ptr in first executeprocess
+
+  Revision 1.37  2004/03/04 22:15:16  marco
    * UnixType changes. Please report problems to me.
    * UnixType changes. Please report problems to me.
 
 
   Revision 1.36  2004/02/13 10:50:23  marco
   Revision 1.36  2004/02/13 10:50:23  marco