소스 검색

* 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;
 function FpGetdirentries(fd : cint; buf : pchar; nbytes : clong) : cint;
 
 
 begin
 begin
-  FpGetdirentries:=do_syscall(syscall_nr_getdirentries,fd,TSysParam(buf), nbytes);
+  FpGetdirentries:=do_syscall(syscall_nr_getdirentries,fd,TSysParam(buf),nbytes,TSysParam(0));
 end;
 end;
 {$endif}
 {$endif}