[NTOS/EX]

- Remove redundant check for a previous mode. Spotted by PVS.

svn path=/trunk/; revision=53598
This commit is contained in:
Aleksey Bragin 2011-09-05 14:27:48 +00:00
parent ea601ab08c
commit 197ed4b94e

View file

@ -1948,18 +1948,11 @@ NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
FStatus = CallQS [SystemInformationClass].Query(SystemInformation, FStatus = CallQS [SystemInformationClass].Query(SystemInformation,
Length, Length,
&ResultLength); &ResultLength);
if (UnsafeResultLength != NULL)
{ /* Save the result length to the caller */
if (PreviousMode != KernelMode) if (UnsafeResultLength)
{
*UnsafeResultLength = ResultLength; *UnsafeResultLength = ResultLength;
} }
else
{
*UnsafeResultLength = ResultLength;
}
}
}
} }
_SEH2_EXCEPT(ExSystemExceptionFilter()) _SEH2_EXCEPT(ExSystemExceptionFilter())
{ {