瀏覽代碼

* fixed WebAssembly InitMutex() and DoneMutex() - pass the parameter by reference

Nikolay Nikolov 1 年之前
父節點
當前提交
c6794dd7d7
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      rtl/wasi/wasmmutex.inc

+ 2 - 2
rtl/wasi/wasmmutex.inc

@@ -14,7 +14,7 @@ begin
   Result:=TMutexKind(M.Kind);
 end;
 
-procedure InitMutex(M : TWasmMutex; aKind : TMutexKind = mkNormal; aOwner : TThreadID = Nil);
+procedure InitMutex(var M : TWasmMutex; aKind : TMutexKind = mkNormal; aOwner : TThreadID = Nil);
 
 begin
   FillChar(M,SizeOf(TWasmMutex),0);
@@ -24,7 +24,7 @@ begin
   M.Kind:=Ord(aKind);
 end;
 
-procedure DoneMutex(M : TWasmMutex);
+procedure DoneMutex(var M : TWasmMutex);
 
 Var
   a : LongInt;