mirror of
https://github.com/reactos/reactos.git
synced 2025-06-10 20:34:59 +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
1 changed files with 3 additions and 2 deletions
|
@ -1291,9 +1291,10 @@ QSI_DEF(SystemFileCacheInformation)
|
||||||
{
|
{
|
||||||
SYSTEM_FILECACHE_INFORMATION *Sci = (SYSTEM_FILECACHE_INFORMATION *) Buffer;
|
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;
|
return STATUS_INFO_LENGTH_MISMATCH;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue