mirror of
https://gitlab.winehq.org/wine/wine-staging.git
synced 2025-01-28 22:04:43 -08:00
hal-KeQueryPerformanceCounter: Use numeric return type to ensure correct code is generated on x86.
This commit is contained in:
parent
97d07afaf9
commit
42b1edd98d
@ -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>
|
||||
Date: Wed, 28 Oct 2015 22:36:01 +0100
|
||||
Subject: hal: Implement KeQueryPerformanceCounter.
|
||||
@ -9,7 +9,7 @@ Subject: hal: Implement KeQueryPerformanceCounter.
|
||||
2 files changed, 11 insertions(+), 1 deletion(-)
|
||||
|
||||
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
|
||||
+++ b/dlls/hal/hal.c
|
||||
@@ -155,3 +155,13 @@ KIRQL WINAPI KeGetCurrentIrql(VOID)
|
||||
@ -17,14 +17,14 @@ index 96bc895..7baebcd 100644
|
||||
return 0;
|
||||
}
|
||||
+
|
||||
+LARGE_INTEGER WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency)
|
||||
+ULONGLONG WINAPI KeQueryPerformanceCounter(LARGE_INTEGER *frequency)
|
||||
+{
|
||||
+ LARGE_INTEGER counter;
|
||||
+
|
||||
+ TRACE("(%p)\n", frequency);
|
||||
+
|
||||
+ NtQueryPerformanceCounter(&counter, frequency);
|
||||
+ return counter;
|
||||
+ return counter.QuadPart;
|
||||
+}
|
||||
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
|
||||
index 3046c65..dc908dd 100644
|
||||
@ -40,5 +40,5 @@ index 3046c65..dc908dd 100644
|
||||
@ stub KeRaiseIrqlToDpcLevel
|
||||
@ stub KeRaiseIrqlToSynchLevel
|
||||
--
|
||||
2.6.1
|
||||
2.6.2
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user