refactor(client): changing variable names for clarity

This commit is contained in:
joaoviictorti
2024-09-26 21:17:33 -03:00
parent 05bff9341c
commit 5911c9993b
3 changed files with 5 additions and 5 deletions

View File

@@ -6,7 +6,7 @@ use {
PS_PROTECTED_SIGNER, PS_PROTECTED_TYPE,
},
shared::{
vars::MAX_PIDS,
vars::MAX_PID,
structs::{
EnumerateInfoInput, ProcessInfoHide, ProcessListInfo,
ProcessSignature, TargetProcess, ProcessProtection
@@ -120,7 +120,7 @@ impl Process {
}
pub fn enumerate_process(&mut self, ioctl_code: u32, option: &Options) {
let mut info_process: [ProcessListInfo; MAX_PIDS] = unsafe { std::mem::zeroed() };
let mut info_process: [ProcessListInfo; MAX_PID] = unsafe { std::mem::zeroed() };
let mut enumeration_input = EnumerateInfoInput {
options: option.to_shared(),
};

View File

@@ -3,7 +3,7 @@ use {
log::*,
shared::{
structs::{EnumerateInfoInput, TargetThread, ThreadListInfo},
vars::MAX_TIDS,
vars::MAX_TID,
},
std::{ffi::c_void, mem::size_of, ptr::null_mut},
windows_sys::Win32::{
@@ -89,7 +89,7 @@ impl Thread {
pub fn enumerate_thread(self, ioctl_code: u32, option: &Options) {
debug!("Attempting to open the driver for thread enumeration");
let mut info_thread: [ThreadListInfo; MAX_TIDS] = unsafe { std::mem::zeroed() };
let mut info_thread: [ThreadListInfo; MAX_TID] = unsafe { std::mem::zeroed() };
let mut enumeration_input = EnumerateInfoInput {
options: option.to_shared(),
};

View File

@@ -26,7 +26,7 @@ use {
/// - `file` - A string reference representing the file path.
///
/// # Returns
///
/// - `true` if the file exists, `false` otherwise.
pub fn check_file(file: &String) -> bool {
let file = Path::new(file);