Browse Source

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

Nikolay Nikolov 3 years ago
parent
commit
77ca8ba16d
1 changed files with 4 additions and 0 deletions
  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;