[NTOSKRNL]

NtQuerySystemInformation: Return ResultLength only in case of success.

svn path=/trunk/; revision=68346
This commit is contained in:
Eric Kohl 2015-07-05 09:58:03 +00:00
parent 451f37cfc3
commit 08507c0a9a

View file

@ -2440,7 +2440,7 @@ NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
&ResultLength);
/* Save the result length to the caller */
if (UnsafeResultLength)
if (NT_SUCCESS(FStatus) && UnsafeResultLength)
*UnsafeResultLength = ResultLength;
}
}