From c6b64448ce46d1f1ca80850f4a358f2bf74178f7 Mon Sep 17 00:00:00 2001 From: Oleg Dubinskiy Date: Wed, 9 Oct 2019 18:40:22 +0300 Subject: [PATCH] [KERNEL32] Stub GetSystemTimePreciseAsFileTime --- dll/apisets/api-ms-win-core-sysinfo-l1-2-0.spec | 2 +- dll/apisets/api-ms-win-core-sysinfo-l1-2-1.spec | 2 +- dll/win32/kernel32/client/time.c | 10 ++++++++++ dll/win32/kernel32/kernel32.spec | 1 + 4 files changed, 13 insertions(+), 2 deletions(-) diff --git a/dll/apisets/api-ms-win-core-sysinfo-l1-2-0.spec b/dll/apisets/api-ms-win-core-sysinfo-l1-2-0.spec index 0c48bdccdb7..591e4e7037c 100644 --- a/dll/apisets/api-ms-win-core-sysinfo-l1-2-0.spec +++ b/dll/apisets/api-ms-win-core-sysinfo-l1-2-0.spec @@ -17,7 +17,7 @@ @ stdcall GetSystemTime() kernel32.GetSystemTime @ stdcall GetSystemTimeAdjustment() kernel32.GetSystemTimeAdjustment @ stdcall GetSystemTimeAsFileTime() kernel32.GetSystemTimeAsFileTime -@ stub GetSystemTimePreciseAsFileTime +@ stdcall -version=0x602+ GetSystemTimePreciseAsFileTime() kernel32.GetSystemTimePreciseAsFileTime @ stdcall GetSystemWindowsDirectoryA() kernel32.GetSystemWindowsDirectoryA @ stdcall GetSystemWindowsDirectoryW() kernel32.GetSystemWindowsDirectoryW @ stdcall GetTickCount() kernel32.GetTickCount diff --git a/dll/apisets/api-ms-win-core-sysinfo-l1-2-1.spec b/dll/apisets/api-ms-win-core-sysinfo-l1-2-1.spec index 7baed33465a..ab5ce34982a 100644 --- a/dll/apisets/api-ms-win-core-sysinfo-l1-2-1.spec +++ b/dll/apisets/api-ms-win-core-sysinfo-l1-2-1.spec @@ -19,7 +19,7 @@ @ stdcall GetSystemTime() kernel32.GetSystemTime @ stdcall GetSystemTimeAdjustment() kernel32.GetSystemTimeAdjustment @ stdcall GetSystemTimeAsFileTime() kernel32.GetSystemTimeAsFileTime -@ stub GetSystemTimePreciseAsFileTime +@ stdcall -version=0x602+ GetSystemTimePreciseAsFileTime() kernel32.GetSystemTimePreciseAsFileTime @ stdcall GetSystemWindowsDirectoryA() kernel32.GetSystemWindowsDirectoryA @ stdcall GetSystemWindowsDirectoryW() kernel32.GetSystemWindowsDirectoryW @ stdcall -version=0x600+ GetTickCount64() kernel32.GetTickCount64 diff --git a/dll/win32/kernel32/client/time.c b/dll/win32/kernel32/client/time.c index 6ff8559956a..7c67e1165ce 100644 --- a/dll/win32/kernel32/client/time.c +++ b/dll/win32/kernel32/client/time.c @@ -140,6 +140,16 @@ GetSystemTimeAsFileTime(OUT PFILETIME lpFileTime) lpFileTime->dwHighDateTime = SystemTime.HighPart; } +/* + * @unimplemented + */ +VOID +WINAPI +GetSystemTimePreciseAsFileTime(OUT PFILETIME lpFileTime) +{ + STUB; +} + /* * @implemented */ diff --git a/dll/win32/kernel32/kernel32.spec b/dll/win32/kernel32/kernel32.spec index b7cf1e6a019..765d5f450bb 100644 --- a/dll/win32/kernel32/kernel32.spec +++ b/dll/win32/kernel32/kernel32.spec @@ -605,6 +605,7 @@ @ stdcall GetSystemTime(ptr) @ stdcall GetSystemTimeAdjustment(ptr ptr ptr) @ stdcall GetSystemTimeAsFileTime(ptr) +@ stdcall -version=0x602+ GetSystemTimePreciseAsFileTime(ptr) @ stdcall GetSystemTimes(ptr ptr ptr) @ stdcall GetSystemWindowsDirectoryA(ptr long) @ stdcall GetSystemWindowsDirectoryW(ptr long)