You've already forked wine-staging
mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-04-13 14:42:51 -07:00
hal-KeQueryPerformanceCounter: Use numeric return type to ensure correct code is generated on x86.
This commit is contained in:
@ -1,4 +1,4 @@
|
|||||||
From 32b4634ca8534cf05469e39991891d9fb0f50f4c Mon Sep 17 00:00:00 2001
|
From 6ae55e62a81e4f4ded0ea14926f014b6d6a4b633 Mon Sep 17 00:00:00 2001
|
||||||
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
From: =?UTF-8?q?Michael=20M=C3=BCller?= <michael@fds-team.de>
|
||||||
Date: Wed, 28 Oct 2015 22:36:01 +0100
|
Date: Wed, 28 Oct 2015 22:36:01 +0100
|
||||||
Subject: hal: Implement KeQueryPerformanceCounter.
|
Subject: hal: Implement KeQueryPerformanceCounter.
|
||||||
@ -9,7 +9,7 @@ Subject: hal: Implement KeQueryPerformanceCounter.
|
|||||||
2 files changed, 11 insertions(+), 1 deletion(-)
|
2 files changed, 11 insertions(+), 1 deletion(-)
|
||||||
|
|
||||||
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
|
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
|
||||||
index 96bc895..7baebcd 100644
|
index 96bc895..145869d 100644
|
||||||
--- a/dlls/hal/hal.c
|
--- a/dlls/hal/hal.c
|
||||||
+++ b/dlls/hal/hal.c
|
+++ b/dlls/hal/hal.c
|
||||||
@@ -155,3 +155,13 @@ KIRQL WINAPI KeGetCurrentIrql(VOID)
|
@@ -155,3 +155,13 @@ KIRQL WINAPI KeGetCurrentIrql(VOID)
|
||||||
@ -17,14 +17,14 @@ index 96bc895..7baebcd 100644
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
+
|
+
|
||||||
+LARGE_INTEGER WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency)
|
+ULONGLONG WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency)
|
||||||
+{
|
+{
|
||||||
+ LARGE_INTEGER counter;
|
+ LARGE_INTEGER counter;
|
||||||
+
|
+
|
||||||
+ TRACE("(%p)\n", frequency);
|
+ TRACE("(%p)\n", frequency);
|
||||||
+
|
+
|
||||||
+ NtQueryPerformanceCounter(&counter, frequency);
|
+ NtQueryPerformanceCounter(&counter, frequency);
|
||||||
+ return counter;
|
+ return counter.QuadPart;
|
||||||
+}
|
+}
|
||||||
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
|
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
|
||||||
index 3046c65..dc908dd 100644
|
index 3046c65..dc908dd 100644
|
||||||
@ -40,5 +40,5 @@ index 3046c65..dc908dd 100644
|
|||||||
@ stub KeRaiseIrqlToDpcLevel
|
@ stub KeRaiseIrqlToDpcLevel
|
||||||
@ stub KeRaiseIrqlToSynchLevel
|
@ stub KeRaiseIrqlToSynchLevel
|
||||||
--
|
--
|
||||||
2.6.1
|
2.6.2
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user