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