reactos/lib/kernel32/misc
diff -u -r1.30 -r1.31
--- time.c 30 Jul 2004 19:18:39 -0000 1.30
+++ time.c 14 Nov 2004 18:53:11 -0000 1.31
@@ -1,4 +1,4 @@
-/* $Id: time.c,v 1.30 2004/07/30 19:18:39 jimtabor Exp $
+/* $Id: time.c,v 1.31 2004/11/14 18:53:11 hbirr Exp $
*
* COPYRIGHT: See COPYING in the top level directory
* PROJECT: ReactOS system libraries
@@ -141,7 +141,12 @@
VOID STDCALL
GetSystemTimeAsFileTime (PFILETIME lpFileTime)
{
- NtQuerySystemTime ((PLARGE_INTEGER)lpFileTime);
+ do
+ {
+ lpFileTime->dwHighDateTime = SharedUserData->SystemTime.High1Time;
+ lpFileTime->dwLowDateTime = SharedUserData->SystemTime.LowPart;
+ }
+ while (lpFileTime->dwHighDateTime != SharedUserData->SystemTime.High2Time);
}
@@ -254,7 +259,7 @@
FILETIME FileTime;
FILETIME LocalFileTime;
- NtQuerySystemTime ((PLARGE_INTEGER)&FileTime);
+ GetSystemTimeAsFileTime(&FileTime);
FileTimeToLocalFileTime (&FileTime, &LocalFileTime);
FileTimeToSystemTime (&LocalFileTime, lpSystemTime);
}
@@ -268,7 +273,7 @@
{
FILETIME FileTime;
- NtQuerySystemTime ((PLARGE_INTEGER)&FileTime);
+ GetSystemTimeAsFileTime(&FileTime);
FileTimeToSystemTime (&FileTime, lpSystemTime);
}