Skip to content

Commit

Permalink
..
Browse files Browse the repository at this point in the history
  • Loading branch information
aviramha committed Jun 26, 2024
1 parent d801a43 commit ce24db4
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion frida/src/script.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,10 @@ impl<'a> Script<'a> {
pub fn handle_message<I: ScriptHandler>(&self, handler: &mut I) -> Result<()> {
let message = CString::new("message").map_err(|_| Error::CStringFailed)?;
unsafe {
let callback = Some(std::mem::transmute::<*mut std::ffi::c_void, unsafe extern "C" fn()>(call_on_message::<I> as *mut c_void));
let callback = Some(std::mem::transmute::<
*mut std::ffi::c_void,
unsafe extern "C" fn(),
>(call_on_message::<I> as *mut c_void));

frida_sys::g_signal_connect_data(
self.script_ptr as _,
Expand Down

0 comments on commit ce24db4

Please sign in to comment.