Commit 9ebbd3e5 authored by Juan Lang's avatar Juan Lang Committed by Alexandre Julliard

Fix NtQueryPerformanceCounter parameter checking. Spotted by Alex

Woods.
parent 4390d003
......@@ -520,9 +520,12 @@ NTSTATUS WINAPI NtQueryPerformanceCounter(
OUT PLARGE_INTEGER Frequency)
{
LARGE_INTEGER time;
if (!Counter) return STATUS_ACCESS_VIOLATION;
NtQuerySystemTime( &time );
Counter->QuadPart = time.QuadPart;
Frequency->QuadPart = 10000000;
if (Frequency)
Frequency->QuadPart = 10000000;
return 0;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment