Alexandre Julliard : kernel: Make GetTickCount call NtGetTickCount.
Alexandre Julliard
julliard at wine.codeweavers.com
Thu Apr 20 13:19:53 CDT 2006
Module: wine
Branch: refs/heads/master
Commit: b0c63af12429f0455852d878337f60db33050cef
URL: http://source.winehq.org/git/?p=wine.git;a=commit;h=b0c63af12429f0455852d878337f60db33050cef
Author: Alexandre Julliard <julliard at winehq.org>
Date: Thu Apr 20 20:13:12 2006 +0200
kernel: Make GetTickCount call NtGetTickCount.
---
dlls/kernel/kernel_main.c | 10 +---------
1 files changed, 1 insertions(+), 9 deletions(-)
diff --git a/dlls/kernel/kernel_main.c b/dlls/kernel/kernel_main.c
index a78439e..ed9fe60 100644
--- a/dlls/kernel/kernel_main.c
+++ b/dlls/kernel/kernel_main.c
@@ -59,8 +59,6 @@ static CRITICAL_SECTION_DEBUG critsect_d
};
static CRITICAL_SECTION ldt_section = { &critsect_debug, -1, 0, 0, 0, 0 };
-static DWORD server_start_time;
-
/***********************************************************************
* locking for LDT routines
*/
@@ -106,10 +104,6 @@ static void thread_detach(void)
static BOOL process_attach(void)
{
SYSTEM_INFO si;
- SYSTEM_TIMEOFDAY_INFORMATION sti;
-
- NtQuerySystemInformation( SystemTimeOfDayInformation, &sti, sizeof(sti), NULL );
- RtlTimeToSecondsSince1970( &sti.liKeBootTime, &server_start_time );
/* FIXME: should probably be done in ntdll */
GetSystemInfo( &si );
@@ -230,7 +224,5 @@ INT WINAPI MulDiv( INT nMultiplicand, IN
*/
DWORD WINAPI GetTickCount(void)
{
- struct timeval t;
- gettimeofday( &t, NULL );
- return ((t.tv_sec - server_start_time) * 1000) + (t.tv_usec / 1000);
+ return NtGetTickCount();
}
More information about the wine-cvs
mailing list