mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-09 06:17:35 +00:00
ntdll: Use the user shared data to implement NtGetTickCount().
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
0936606c38
commit
cc5953048e
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue