Explorar o código

* Local threadsupport variable must be set

Michael Van Canneyt hai 7 meses
pai
achega
22ab77a42c
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      packages/wasi/src/wasithreadedapp.pas

+ 2 - 2
packages/wasi/src/wasithreadedapp.pas

@@ -82,8 +82,8 @@ Var
 begin
   Res:=ThreadAppWASIHost.Create(Self);
   Res.UseSharedMemory:=True;
-  Res.ThreadSupport:=CreateThreadSupport(Res.WasiEnvironment);
-
+  FThreadSupport:=CreateThreadSupport(Res.WasiEnvironment);
+  Res.ThreadSupport:=FThreadSupport;
   Result:=Res;
 end;