Author: hbelusca
Date: Tue Dec 3 23:57:16 2013
New Revision: 61212
URL:
http://svn.reactos.org/svn/reactos?rev=61212&view=rev
Log:
[KERNEL32]: Fix QueryPerformanceFrequency: it's when NtQueryPerformanceCounter returns
a frequency of zero, that HW perf counters are not implemented.
Modified:
trunk/reactos/dll/win32/kernel32/client/perfcnt.c
Modified: trunk/reactos/dll/win32/kernel32/client/perfcnt.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/perfcnt.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/perfcnt.c [iso-8859-1] Tue Dec 3 23:57:16
2013
@@ -26,7 +26,7 @@
NTSTATUS Status;
Status = NtQueryPerformanceCounter(lpPerformanceCount, &Frequency);
- if (!Frequency.QuadPart) Status = STATUS_NOT_IMPLEMENTED;
+ if (Frequency.QuadPart == 0) Status = STATUS_NOT_IMPLEMENTED;
if (!NT_SUCCESS(Status))
{
@@ -48,7 +48,7 @@
NTSTATUS Status;
Status = NtQueryPerformanceCounter(&Count, lpFrequency);
- if (!Count.QuadPart) Status = STATUS_NOT_IMPLEMENTED;
+ if (lpFrequency->QuadPart == 0) Status = STATUS_NOT_IMPLEMENTED;
if (!NT_SUCCESS(Status))
{