mirror of
https://github.com/reactos/reactos.git
synced 2025-01-02 20:43:18 +00:00
[KERNEL32]: Fix QueryPerformanceFrequency: it's when NtQueryPerformanceCounter returns a frequency of zero, that HW perf counters are not implemented.
svn path=/trunk/; revision=61212
This commit is contained in:
parent
65881aa3cc
commit
2ce23daed3
1 changed files with 2 additions and 2 deletions
|
@ -26,7 +26,7 @@ QueryPerformanceCounter(OUT PLARGE_INTEGER lpPerformanceCount)
|
|||
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 @@ QueryPerformanceFrequency(OUT PLARGE_INTEGER lpFrequency)
|
|||
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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue