Author: ekohl
Date: Sun Jul 5 09:58:03 2015
New Revision: 68346
URL: http://svn.reactos.org/svn/reactos?rev=68346&view=rev
Log:
[NTOSKRNL]
NtQuerySystemInformation: Return ResultLength only in case of success.
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Sun Jul 5 09:58:03 2015
@@ -2440,7 +2440,7 @@
&ResultLength);
/* Save the result length to the caller */
- if (UnsafeResultLength)
+ if (NT_SUCCESS(FStatus) && UnsafeResultLength)
*UnsafeResultLength = ResultLength;
}
}