mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 19:55:41 +00:00
[NTOS/EX]
- Remove redundant check for a previous mode. Spotted by PVS. svn path=/trunk/; revision=53598
This commit is contained in:
parent
ea601ab08c
commit
197ed4b94e
1 changed files with 4 additions and 11 deletions
|
@ -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())
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue