diff --git a/rtl/wasi/wasmmutex.inc b/rtl/wasi/wasmmutex.inc index a3043b4c64..6420743507 100644 --- a/rtl/wasi/wasmmutex.inc +++ b/rtl/wasi/wasmmutex.inc @@ -84,7 +84,7 @@ begin {$IFDEF DEBUGWASMTHREADS}DebugWriteln('LockMutexTimeoutNoWait: entering loop');{$ENDIF} Repeat if TryLockMutex(M) then - Result:=lmrOK + Res:=lmrOK else if (GetThreadState(MyThread)<>tsRunning) then Res:=lmrError else if (aTimeOutNS>=0) and (GetClockTime>EndTime) then