mirror of
https://github.com/reactos/reactos.git
synced 2025-06-03 08:20:27 +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,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())
|
||||
|
|
Loading…
Reference in a new issue