mirror of
https://github.com/reactos/reactos.git
synced 2025-02-23 08:55:19 +00:00
[NTOSKRNL]
NtQuerySystemInformation: Return ResultLength only in case of success. svn path=/trunk/; revision=68346
This commit is contained in:
parent
451f37cfc3
commit
08507c0a9a
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue