From 8a35b6d78b40a5ecb0c3f70b4d10bd910fbd3773 Mon Sep 17 00:00:00 2001 From: Liu Xiangru Date: Sat, 21 Oct 2023 04:05:06 +0800 Subject: [PATCH] Fix error when passing event_sink --- frida-gum/src/stalker/event_sink.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frida-gum/src/stalker/event_sink.rs b/frida-gum/src/stalker/event_sink.rs index 0b88852..49326e3 100644 --- a/frida-gum/src/stalker/event_sink.rs +++ b/frida-gum/src/stalker/event_sink.rs @@ -137,10 +137,10 @@ unsafe extern "C" fn call_query_mask( } pub(crate) fn event_sink_transform( - mut event_sink: &S, + event_sink: &mut S, ) -> *mut frida_gum_sys::GumEventSink { let rust = frida_gum_sys::RustEventSinkVTable { - user_data: &mut event_sink as *mut _ as *mut c_void, + user_data: event_sink as *mut _ as *mut c_void, query_mask: Some(call_query_mask::), start: Some(call_start::), process: Some(call_process::),