[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,17 +1948,10 @@ NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
FStatus = CallQS [SystemInformationClass].Query(SystemInformation,
Length,
&ResultLength);
if (UnsafeResultLength != NULL)
{
if (PreviousMode != KernelMode)
{
*UnsafeResultLength = ResultLength;
}
else
{
*UnsafeResultLength = ResultLength;
}
}
/* Save the result length to the caller */
if (UnsafeResultLength)
*UnsafeResultLength = ResultLength;
}
}
_SEH2_EXCEPT(ExSystemExceptionFilter())