mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +00:00
[NTOSKRNL] Fix NtQuerySystemInformation not returning correct ResultLength for SystemFileCacheInformation. Fixes tons of ntdll:info tests. Brought to you by Tetsui Ohkubo. CORE-9757
svn path=/trunk/; revision=68024
This commit is contained in:
parent
f5cb18efea
commit
b6e76c0f6b
|
@ -1291,9 +1291,10 @@ QSI_DEF(SystemFileCacheInformation)
|
|||
{
|
||||
SYSTEM_FILECACHE_INFORMATION *Sci = (SYSTEM_FILECACHE_INFORMATION *) Buffer;
|
||||
|
||||
if (Size < sizeof(SYSTEM_FILECACHE_INFORMATION))
|
||||
*ReqSize = sizeof(SYSTEM_FILECACHE_INFORMATION);
|
||||
|
||||
if (Size < *ReqSize)
|
||||
{
|
||||
*ReqSize = sizeof(SYSTEM_FILECACHE_INFORMATION);
|
||||
return STATUS_INFO_LENGTH_MISMATCH;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue