Skip to content

Commit

Permalink
Update lib.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
oberrich authored Sep 3, 2024
1 parent b886e94 commit d17e823
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,11 +75,11 @@ pub mod ext {

#[inline]
pub unsafe fn NtCurrentTeb() -> *mut TEB {
const TEB_OFFSET = mem::offset_of!(NT_TIB, Self_) as u32;
const TEB_OFFSET: u32 = mem::offset_of!(NT_TIB, Self_) as u32;
#[cfg(target_arch = "x86_64")]
__readgsqword(TEB_OFFSET) as _
{ __readgsqword(TEB_OFFSET) as _ }
#[cfg(target_arch = "x86")]
__readfsdword(TEB_OFFSET) as _
{ __readfsdword(TEB_OFFSET) as _ }
}

#[cfg(test)]
Expand Down

0 comments on commit d17e823

Please sign in to comment.