瀏覽代碼

* always return error in SysUtils.FindFirst and .FindNext on the WASI platform,
in order to prevent infinite loops in tests

Nikolay Nikolov 3 年之前
父節點
當前提交
77ca8ba16d
共有 1 個文件被更改,包括 4 次插入0 次删除
  1. 4 0
      rtl/wasi/sysutils.pp

+ 4 - 0
rtl/wasi/sysutils.pp

@@ -132,11 +132,15 @@ end;
 
 Function InternalFindFirst (Const Path : RawByteString; Attr : Longint; out Rslt : TAbstractSearchRec; var Name: RawByteString) : Longint;
 begin
+  { not yet implemented }
+  Result := -1;
 end;
 
 
 Function InternalFindNext (var Rslt : TAbstractSearchRec; var Name : RawByteString) : Longint;
 begin
+  { not yet implemented }
+  Result := -1;
 end;