You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-12-15 08:03:15 -08:00
Added patch to implement hal.KeQueryPerformanceCounter.
This commit is contained in:
@@ -0,0 +1,44 @@
|
||||
From 32b4634ca8534cf05469e39991891d9fb0f50f4c Mon Sep 17 00:00:00 2001
|
||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||
Date: Wed, 28 Oct 2015 22:36:01 +0100
|
||||
Subject: hal: Implement KeQueryPerformanceCounter.
|
||||
|
||||
---
|
||||
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 96bc895..7baebcd 100644
|
||||
--- a/dlls/hal/hal.c
|
||||
+++ b/dlls/hal/hal.c
|
||||
@@ -155,3 +155,13 @@ KIRQL WINAPI KeGetCurrentIrql(VOID)
|
||||
FIXME( " stub!\n");
|
||||
return 0;
|
||||
}
|
||||
+
|
||||
+LARGE_INTEGER WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency)
|
||||
+{
|
||||
+ LARGE_INTEGER counter;
|
||||
+
|
||||
+ TRACE("(%p)\n", frequency);
|
||||
+
|
||||
+ NtQueryPerformanceCounter(&counter, frequency);
|
||||
+ return counter;
|
||||
+}
|
||||
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
|
||||
index 3046c65..dc908dd 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.6.1
|
||||
|
||||
1
patches/hal-KeQueryPerformanceCounter/definition
Normal file
1
patches/hal-KeQueryPerformanceCounter/definition
Normal file
@@ -0,0 +1 @@
|
||||
Fixes: [39500] Implement hal.KeQueryPerformanceCounter
|
||||
Reference in New Issue
Block a user