瀏覽代碼

* add parameter (=0) to getdirentries, hopefully fixes occasional EFAULT loops.
probably the random value of the register caused problems, already in the patch from bug #37220

(cherry picked from commit adf1a0642f70c4bdf7cc5d3cd1b681aaf39ca39f)

marcoonthegit 3 年之前
父節點
當前提交
c75945a32b
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      rtl/bsd/ossysc.inc

+ 1 - 1
rtl/bsd/ossysc.inc

@@ -188,7 +188,7 @@ const DIRBLKSIZ=1024;
 function FpGetdirentries(fd : cint; buf : pchar; nbytes : clong) : cint;
 
 begin
-  FpGetdirentries:=do_syscall(syscall_nr_getdirentries,fd,TSysParam(buf), nbytes);
+  FpGetdirentries:=do_syscall(syscall_nr_getdirentries,fd,TSysParam(buf),nbytes,TSysParam(0));
 end;
 {$endif}