瀏覽代碼

* fix for pointer increase

git-svn-id: trunk@3178 -
Tomas Hajny 19 年之前
父節點
當前提交
7b9c5f5c50
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/os2/sysutils.pp

+ 1 - 1
rtl/os2/sysutils.pp

@@ -939,7 +939,7 @@ begin
 (* Work around a bug in OS/2 - argument to DosExecPgm *)
 (* should not cross 64K boundary. *)
    if ((PtrUInt (Args) + 1024) and $FFFF) < 1024 then
-    Inc (Args, 1024);
+    Inc (pointer (Args), 1024);
    ArgSize := 0;
    Move (Path [1], Args^ [ArgSize], Length (Path));
    Inc (ArgSize, Length (Path));