mirror of
https://github.com/a2x/cs2-dumper.git
synced 2025-04-05 00:25:36 +08:00
Fix for #32
This commit is contained in:
parent
f8643c1680
commit
d6c4c8e4f1
@ -324,13 +324,13 @@ impl Process {
|
|||||||
|
|
||||||
let mut data = vec![0; entry.modBaseSize as usize];
|
let mut data = vec![0; entry.modBaseSize as usize];
|
||||||
|
|
||||||
self.read_memory_raw(
|
if let Ok(_) = self.read_memory_raw(
|
||||||
entry.modBaseAddr.into(),
|
entry.modBaseAddr.into(),
|
||||||
data.as_mut_ptr() as *mut _,
|
data.as_mut_ptr() as *mut _,
|
||||||
data.len(),
|
data.len(),
|
||||||
)?;
|
) {
|
||||||
|
self.modules.insert(name.to_string(), data);
|
||||||
self.modules.insert(name.to_string(), data);
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user