X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-psi;a=blobdiff_plain;f=src%2Flibffi.c;h=ee077af19b4b2af2cbba62b6c41dc2961355eaa8;hp=d5158271b65879a31afccd66dbbbef6f922f5730;hb=756a2c4350162a9a7f930bdc0ec7718ff13ea48c;hpb=61918592ab618c073b9846783ce79fed9f26c5f7 diff --git a/src/libffi.c b/src/libffi.c index d515827..ee077af 100644 --- a/src/libffi.c +++ b/src/libffi.c @@ -152,7 +152,7 @@ static inline void PSI_LibffiCallInitClosure(PSI_Context *C, PSI_LibffiCall *cal call->code); #elif PSI_HAVE_FFI_PREP_CLOSURE - rc = ffi_prep_closure(data->code, &context->signature, psi_ffi_handler, data); + rc = ffi_prep_closure(call->code, &context->signature, psi_ffi_handler, impl); #else # error "Neither ffi_prep_closure() nor ffi_prep_closure_loc() available" #endif