https://git.reactos.org/?p=reactos.git;a=commitdiff;h=0699dcb50cefd64015392…
commit 0699dcb50cefd64015392ba2b74754d2b3f0c573
Author: Jérôme Gardou <jerome.gardou(a)reactos.org>
AuthorDate: Wed Feb 3 10:29:28 2021 +0100
Commit: Jérôme Gardou <jerome.gardou(a)reactos.org>
CommitDate: Wed Feb 3 10:29:28 2021 +0100
[NTOS:EX] Restore sysinfo
---
ntoskrnl/ex/sysinfo.c | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git a/ntoskrnl/ex/sysinfo.c b/ntoskrnl/ex/sysinfo.c
index f595623b4c8..ffb8ddc906d 100644
--- a/ntoskrnl/ex/sysinfo.c
+++ b/ntoskrnl/ex/sysinfo.c
@@ -278,7 +278,7 @@ ExpGetRawSMBiosTable(
DPRINT1("IoWMIOpenBlock failed: 0x%08lx\n", Status);
return Status;
}
-
+
AllData = ExAllocatePoolWithTag(PagedPool, WMIBufSize, 'itfS');
if (AllData == NULL)
{
@@ -766,7 +766,7 @@ QSI_DEF(SystemPerformanceInformation)
Spi->TotalSystemDriverPages = 0; /* FIXME */
Spi->Spare3Count = 0; /* FIXME */
- Spi->ResidentSystemCachePage = 0; /* FIXME */
+ Spi->ResidentSystemCachePage = MiMemoryConsumers[MC_USER].PagesUsed; /* FIXME */
Spi->ResidentPagedPoolPage = 0; /* FIXME */
Spi->ResidentSystemDriverPage = 0; /* FIXME */
@@ -1476,10 +1476,10 @@ QSI_DEF(SystemFileCacheInformation)
RtlZeroMemory(Sci, sizeof(SYSTEM_FILECACHE_INFORMATION));
/* Return the Byte size not the page size. */
- Sci->CurrentSize = 0; /* FIXME */
- Sci->PeakSize = 0; /* FIXME */
+ Sci->CurrentSize = MiMemoryConsumers[MC_USER].PagesUsed; /* FIXME */
+ Sci->PeakSize = MiMemoryConsumers[MC_USER].PagesUsed; /* FIXME */
/* Taskmgr multiplies this one by page size right away */
- Sci->CurrentSizeIncludingTransitionInPages = 0; /* FIXME: Should be */
+ Sci->CurrentSizeIncludingTransitionInPages = MiMemoryConsumers[MC_USER].PagesUsed;
/* FIXME: Should be */
/* system working set and standby pages. */
Sci->PageFaultCount = 0; /* FIXME */
Sci->MinimumWorkingSet = 0; /* FIXME */