Module: wine Branch: master Commit: cc5953048e570155deb791b9e9e738a0508c2032 URL: https://source.winehq.org/git/wine.git/?a=commit;h=cc5953048e570155deb791b9e...
Author: Alexandre Julliard julliard@winehq.org Date: Thu May 21 18:55:54 2020 +0200
ntdll: Use the user shared data to implement NtGetTickCount().
Signed-off-by: Alexandre Julliard julliard@winehq.org
---
dlls/ntdll/time.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/dlls/ntdll/time.c b/dlls/ntdll/time.c index b42a621aa2..06854c020d 100644 --- a/dlls/ntdll/time.c +++ b/dlls/ntdll/time.c @@ -44,6 +44,7 @@
#include "ntstatus.h" #define WIN32_NO_STATUS +#define NONAMELESSUNION #include "windef.h" #include "winternl.h" #include "wine/exception.h" @@ -577,9 +578,10 @@ BOOL WINAPI DECLSPEC_HOTPATCH RtlQueryPerformanceFrequency( LARGE_INTEGER *frequ * NtGetTickCount (NTDLL.@) * ZwGetTickCount (NTDLL.@) */ -ULONG WINAPI NtGetTickCount(void) +ULONG WINAPI DECLSPEC_HOTPATCH NtGetTickCount(void) { - return monotonic_counter() / TICKSPERMSEC; + /* note: we ignore TickCountMultiplier */ + return user_shared_data->u.TickCount.LowPart; }
/* calculate the mday of dst change date, so that for instance Sun 5 Oct 2007