2
0
Эх сурвалжийг харах

The ffi_closure_alloc return fCode is real do

Jinyang He 1 жил өмнө
parent
commit
8032b65442

+ 1 - 1
packages/libffi/src/ffi.manager.pp

@@ -796,7 +796,7 @@ end;
 
 function TFFIFunctionCallback.GetCodeAddress: CodePointer;
 begin
-  Result := fData;
+  Result := fCode;
 end;
 
 constructor TFFIFunctionCallback.Create(aContext: Pointer; aCallConv: TCallConv; constref aArgs: array of TFunctionCallParameterInfo; aResultType: PTypeInfo; aFlags: TFunctionCallFlags);