[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:
Amine Khaldi 2015-06-05 17:57:28 +00:00
parent f5cb18efea
commit b6e76c0f6b

View file

@ -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;
}