[PATCH] hal: Implement KeQueryPerformanceCounter.
Zebediah Figura
z.figura12 at gmail.com
Tue Feb 27 18:29:41 CST 2018
From: Michael Müller <michael at fds-team.de>
Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
---
Fixes https://bugs.winehq.org/show_bug.cgi?id=39500
dlls/hal/hal.c | 10 ++++++++++
dlls/hal/hal.spec | 2 +-
2 files changed, 11 insertions(+), 1 deletion(-)
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index ddd8710..51bf55d 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -177,3 +177,13 @@ void WINAPI WRITE_PORT_ULONG(ULONG *port, ULONG value)
{
FIXME("(%p %d) stub!\n", port, value);
}
+
+ULONGLONG WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency)
+{
+ LARGE_INTEGER counter;
+
+ TRACE("(%p)\n", frequency);
+
+ NtQueryPerformanceCounter(&counter, frequency);
+ return counter.QuadPart;
+}
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
index ae706e0..5dc3fa8 100644
--- a/dlls/hal/hal.spec
+++ b/dlls/hal/hal.spec
@@ -72,7 +72,7 @@
@ stub KeFlushWriteBuffer
@ stdcall KeGetCurrentIrql()
@ stub KeLowerIrql
-@ stub KeQueryPerformanceCounter
+@ stdcall -ret64 KeQueryPerformanceCounter(ptr)
@ stub KeRaiseIrql
@ stub KeRaiseIrqlToDpcLevel
@ stub KeRaiseIrqlToSynchLevel
--
2.7.4
More information about the wine-devel
mailing list