=?UTF-8?Q?Michael=20M=C3=BCller=20?=: hal: Implement KeQueryPerformanceCounter.

Alexandre Julliard julliard at winehq.org
Mon May 14 06:54:24 CDT 2018


Module: wine
Branch: stable
Commit: 61180206691e1a1b56c1c3ee504e405e05cd82a4
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=61180206691e1a1b56c1c3ee504e405e05cd82a4

Author: Michael Müller <michael at fds-team.de>
Date:   Tue Feb 27 18:29:41 2018 -0600

hal: Implement KeQueryPerformanceCounter.

Signed-off-by: Zebediah Figura <z.figura12 at gmail.com>
Signed-off-by: Alexandre Julliard <julliard at winehq.org>
(cherry picked from commit 02a5071674ef2c39f76c7388a10d1cf63a332539)
Signed-off-by: Michael Stefaniuc <mstefani at winehq.org>

---

 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




More information about the wine-cvs mailing list