projects
/
reactos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
451f37c
)
[NTOSKRNL]
author
Eric Kohl
<eric.kohl@reactos.org>
Sun, 5 Jul 2015 09:58:03 +0000
(09:58 +0000)
committer
Eric Kohl
<eric.kohl@reactos.org>
Sun, 5 Jul 2015 09:58:03 +0000
(09:58 +0000)
NtQuerySystemInformation: Return ResultLength only in case of success.
svn path=/trunk/; revision=68346
reactos/ntoskrnl/ex/sysinfo.c
patch
|
blob
|
history
diff --git
a/reactos/ntoskrnl/ex/sysinfo.c
b/reactos/ntoskrnl/ex/sysinfo.c
index
b77e0a1
..
6d99e0a
100644
(file)
--- a/
reactos/ntoskrnl/ex/sysinfo.c
+++ b/
reactos/ntoskrnl/ex/sysinfo.c
@@
-2440,7
+2440,7
@@
NtQuerySystemInformation(IN SYSTEM_INFORMATION_CLASS SystemInformationClass,
&ResultLength);
/* Save the result length to the caller */
&ResultLength);
/* Save the result length to the caller */
- if (UnsafeResultLength)
+ if (
NT_SUCCESS(FStatus) &&
UnsafeResultLength)
*UnsafeResultLength = ResultLength;
}
}
*UnsafeResultLength = ResultLength;
}
}