[Wine-patches] [eterhack 11/12] hal: Implement KeQueryPerformanceCounter.
Alexander Morozov
=?iso-8859-1?q?amorozov_=CE=C1_etersoft=2Eru?=
Чт Май 21 17:53:47 MSD 2009
---
dlls/hal/hal.c | 7 +++++--
1 files changed, 5 insertions(+), 2 deletions(-)
diff --git a/dlls/hal/hal.c b/dlls/hal/hal.c
index 409c77a..d066d84 100644
--- a/dlls/hal/hal.c
+++ b/dlls/hal/hal.c
@@ -150,8 +150,11 @@ KIRQL WINAPI KeGetCurrentIrql(void)
LONGLONG WINAPI KeQueryPerformanceCounter(LONGLONG *PerformanceFrequency)
{
- TRACE( "(%p) stub!\n", PerformanceFrequency );
- return 0;
+ LARGE_INTEGER counter;
+
+ TRACE( "(%p)\n", PerformanceFrequency );
+ NtQueryPerformanceCounter( &counter, (LARGE_INTEGER *)PerformanceFrequency );
+ return counter.QuadPart;
}
void WINAPI KeLowerIrql(KIRQL NewIrql)
--
1.6.2.5
Подробная информация о списке рассылки Wine-patches