Skip to content
This repository has been archived by the owner on Jul 11, 2024. It is now read-only.

Commit

Permalink
Update hook.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
memN0ps committed Jan 28, 2024
1 parent 962f711 commit d3c01c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions driver/src/hook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -44,8 +44,8 @@ type MmIsAddressValidType = extern "C" fn(VirtualAddress: PVOID) -> bool;
/// The caller must ensure this is the case to avoid undefined behavior.
pub extern "C" fn mm_is_address_valid(virtual_address: u64) -> bool {
// Log the address from which `MmIsAddressValid` was called.
log::trace!("MmIsAddressValid called from {:#x}", unsafe {
return_address().read_volatile() // Reads the return address in a volatile manner to prevent optimizations.
log::debug!("MmIsAddressValid called from {:#x}", unsafe {
return_address().read_volatile() // Reads the return address in a svolatile manner to prevent optimizations.
});

log::debug!("First Parameter Value: {:x}", virtual_address);
Expand Down

0 comments on commit d3c01c1

Please sign in to comment.