- removed the zero constants from the implementation of SysUtils.FileOpen for WASI

This commit is contained in:
Nikolay Nikolov 2021-10-11 10:26:06 +03:00
parent 0bbc5a7528
commit 305393a9c1

View File

@ -74,9 +74,7 @@ end;
Function FileOpen (Const FileName : RawByteString; Mode : Integer) : THandle;
Var
SystemFileName: RawByteString;
oflags : __wasi_oflags_t = 0;
fs_rights_base: __wasi_rights_t = 0;
fdflags: __wasi_fdflags_t = 0;
ourfd: __wasi_fd_t;
res: __wasi_errno_t;
pr: RawByteString;
@ -130,10 +128,10 @@ Begin
0,
PChar(pr),
length(pr),
oflags,
0,
fs_rights_base,
fs_rights_base,
fdflags,
0,
@ourfd);
until (res=__WASI_ERRNO_SUCCESS) or (res<>__WASI_ERRNO_INTR);
If res=__WASI_ERRNO_SUCCESS Then