Skip to content

Commit

Permalink
trying to fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
Xoffio committed Dec 18, 2024
1 parent a3942e3 commit 64c7e79
Showing 1 changed file with 7 additions and 14 deletions.
21 changes: 7 additions & 14 deletions frida-gum/src/process.rs
Original file line number Diff line number Diff line change
Expand Up @@ -99,41 +99,34 @@ impl<'a> Process<'a> {

/// Returns a string specifying the filesystem path to the current working directory
pub fn get_current_dir(&self) -> String {
let current_dir = unsafe {
unsafe {
CStr::from_ptr(_frida_g_get_current_dir())
.to_string_lossy()
.to_string()
};

current_dir
}
}

/// Returns a string specifying the filesystem path to the directory to use for temporary files
pub fn get_tmp_dir(&self) -> String {
let tmp_dir = unsafe {
unsafe {
CStr::from_ptr(_frida_g_get_tmp_dir())
.to_string_lossy()
.to_string()
};

tmp_dir
}
}

/// Returns a string specifying the filesystem path to the current user’s home directory
pub fn get_home_dir(&self) -> String {
let home_dir = unsafe {
unsafe {
CStr::from_ptr(_frida_g_get_home_dir())
.to_string_lossy()
.to_string()
};

home_dir
}
}

/// Get this thread’s OS-specific id as a number
pub fn get_current_thread_id(&self) -> u64 {
let id = unsafe { gum_sys::gum_process_get_current_thread_id() };
id
unsafe { gum_sys::gum_process_get_current_thread_id() }

Check failure on line 129 in frida-gum/src/process.rs

View workflow job for this annotation

GitHub Actions / Check (x86)

mismatched types
}

/// Enumerates memory ranges satisfying `protection` given
Expand Down

0 comments on commit 64c7e79

Please sign in to comment.