Browse Source

* fixed WasiRTLCreateEvent to actually return the result

Nikolay Nikolov 1 year ago
parent
commit
1a714d688a
1 changed files with 1 additions and 0 deletions
  1. 1 0
      rtl/wasi/systhrd.inc

+ 1 - 0
rtl/wasi/systhrd.inc

@@ -159,6 +159,7 @@ begin
   P^.Signal:=0;
   P^.Signal:=0;
   P^.Destroying:=False;
   P^.Destroying:=False;
   InitMutex(P^.Mutex);
   InitMutex(P^.Mutex);
+  Result:=P;
 end;
 end;
 
 
 procedure WasiRTLEventSetEvent(AEvent:PRTLEvent);
 procedure WasiRTLEventSetEvent(AEvent:PRTLEvent);