[Wine-patches] [eterhack 2/8] hal: Add stub for KeQueryPerformanceCounter.

Alexander Morozov =?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Ср Мар 25 16:28:53 MSK 2009


---
 dlls/hal/hal.c    |    6 ++++++
 dlls/hal/hal.spec |    2 +-
 include/ddk/wdm.h |    1 +
 3 files changed, 8 insertions(+), 1 deletions(-)

diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index 33cf212..780e0d4 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -148,6 +148,12 @@ KIRQL WINAPI KeGetCurrentIrql(void)
     return 0;
 }
 
+LONGLONG WINAPI KeQueryPerformanceCounter(LONGLONG *PerformanceFrequency)
+{
+    FIXME( "(%p) stub!\n", PerformanceFrequency );
+    return 0;
+}
+
 void WINAPI KeStallExecutionProcessor(ULONG MicroSeconds)
 {
     struct timespec ts = {0, MicroSeconds * 1000};
diff --git a/dlls/hal/hal.spec b/dlls/hal/hal.spec
index 73015ed..ff19eb1 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
diff --git a/include/ddk/wdm.h b/include/ddk/wdm.h
index 93f6c26..d3208f1 100644
--- a/include/ddk/wdm.h
+++ b/include/ddk/wdm.h
@@ -1168,6 +1168,7 @@ NTSTATUS  WINAPI KeDelayExecutionThread(KPROCESSOR_MODE,BOOLEAN,PLARGE_INTEGER);
 PKTHREAD  WINAPI KeGetCurrentThread(void);
 void      WINAPI KeInitializeEvent(PRKEVENT,EVENT_TYPE,BOOLEAN);
 void      WINAPI KeInitializeSemaphore(PRKSEMAPHORE,LONG,LONG);
+LONGLONG  WINAPI KeQueryPerformanceCounter(LONGLONG*);
 void      WINAPI KeQuerySystemTime(LARGE_INTEGER*);
 void      WINAPI KeQueryTickCount(LARGE_INTEGER*);
 ULONG     WINAPI KeQueryTimeIncrement(void);
-- 
1.6.1.3.GIT



Подробная информация о списке рассылки Wine-patches