From d17e8237f910dbd91d16bb4c4cbf818983366980 Mon Sep 17 00:00:00 2001 From: Rick Date: Tue, 3 Sep 2024 06:48:28 +0200 Subject: [PATCH] Update lib.rs --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 91dd5bc..d71aa49 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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)]