Replace process.read_ptr usage with ptr.read

This commit is contained in:
a2x
2024-03-29 16:10:37 +10:00
parent c00ac5dbb7
commit 621ec605c6
7 changed files with 40 additions and 43 deletions

View File

@@ -23,7 +23,7 @@ impl<T: Sized + Pod> UtlMemory<T> {
let ptr = Pointer64::from(self.mem.address() + (idx * mem::size_of::<T>()));
Ok(process.read_ptr(ptr)?)
Ok(ptr.read(process)?)
}
}