File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2780,7 +2780,7 @@ pub type PKUSER_SHARED_DATA = *mut KUSER_SHARED_DATA;
2780
2780
pub const USER_SHARED_DATA : * const KUSER_SHARED_DATA = 0x7ffe0000 as * const _ ;
2781
2781
#[ inline]
2782
2782
pub unsafe fn NtGetTickCount64 ( ) -> ULONGLONG {
2783
- let mut tick_count: ULARGE_INTEGER = MaybeUninit :: uninit ( ) . assume_init ( ) ;
2783
+ let mut tick_count: ULARGE_INTEGER = MaybeUninit :: zeroed ( ) . assume_init ( ) ;
2784
2784
#[ cfg( any( target_arch = "x86_64" , target_arch = "aarch64" ) ) ] {
2785
2785
* tick_count. QuadPart_mut ( ) = read_volatile ( addr_of ! ( ( * USER_SHARED_DATA ) . u. TickCountQuad ) ) ;
2786
2786
}
@@ -2810,7 +2810,7 @@ pub unsafe fn NtGetTickCount() -> ULONG {
2810
2810
* ( * USER_SHARED_DATA ) . TickCountMultiplier as u64 ) >> 24 ) as u32
2811
2811
}
2812
2812
#[ cfg( target_arch = "x86" ) ] {
2813
- let mut tick_count: ULARGE_INTEGER = MaybeUninit :: uninit ( ) . assume_init ( ) ;
2813
+ let mut tick_count: ULARGE_INTEGER = MaybeUninit :: zeroed ( ) . assume_init ( ) ;
2814
2814
loop {
2815
2815
tick_count. s_mut ( ) . HighPart = read_volatile ( & ( * USER_SHARED_DATA ) . u . TickCount . High1Time )
2816
2816
as u32 ;
You can’t perform that action at this time.
0 commit comments