Fix the windows build

Signed-off-by: Dimitris Zervas <dzervas@dzervas.gr>
This commit is contained in:
Dimitris Zervas
2024-04-16 19:20:45 +03:00
parent 936080b4e8
commit a706f1d890
4 changed files with 5 additions and 3 deletions

View File

@ -12,7 +12,7 @@ pub extern "C" fn attach(pid: u32) {
{
let frida_code = env!("FRIDA_CODE").replace("\\n", "\n");
#[cfg(windows)]
std::thread::spawn(move || frida_attach_pid(&frida_code, AttachMode::Pid(pid)));
std::thread::spawn(move || frida_attach_with(&frida_code, AttachMode::Pid(pid)));
#[cfg(not(windows))]
frida_attach_with(&frida_code, AttachMode::Pid(pid));
}