Alexandre Julliard : ntdll: Fix the SYSTEM_CACHE_INFORMATION structure definition.

Alexandre Julliard julliard at winehq.org
Mon Aug 2 16:43:35 CDT 2021


Module: wine
Branch: master
Commit: 37ed43a1717fd7a58b8d6733dc65783bd5c57709
URL:    https://source.winehq.org/git/wine.git/?a=commit;h=37ed43a1717fd7a58b8d6733dc65783bd5c57709

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Mon Aug  2 14:53:11 2021 +0200

ntdll: Fix the SYSTEM_CACHE_INFORMATION structure definition.

Signed-off-by: Alexandre Julliard <julliard at winehq.org>

---

 dlls/ntdll/tests/info.c |  1 -
 include/winternl.h      | 16 ++++++++--------
 2 files changed, 8 insertions(+), 9 deletions(-)

diff --git a/dlls/ntdll/tests/info.c b/dlls/ntdll/tests/info.c
index ccce197206b..8bd8b319241 100644
--- a/dlls/ntdll/tests/info.c
+++ b/dlls/ntdll/tests/info.c
@@ -869,7 +869,6 @@ static void test_query_cache(void)
     ULONG expected;
     INT i;
 
-    /* the large SYSTEM_CACHE_INFORMATION on WIN64 is not documented */
     expected = sizeof(SYSTEM_CACHE_INFORMATION);
     for (i = sizeof(buffer); i>= expected; i--)
     {
diff --git a/include/winternl.h b/include/winternl.h
index 68aa4afc176..f42261a9797 100644
--- a/include/winternl.h
+++ b/include/winternl.h
@@ -2444,15 +2444,15 @@ typedef struct _SYSTEM_HANDLE_INFORMATION_EX
 /* System Information Class 0x15 */
 
 typedef struct _SYSTEM_CACHE_INFORMATION {
-    ULONG CurrentSize;
-    ULONG PeakSize;
+    SIZE_T CurrentSize;
+    SIZE_T PeakSize;
     ULONG PageFaultCount;
-    ULONG MinimumWorkingSet;
-    ULONG MaximumWorkingSet;
-    ULONG unused[4];
-#ifdef _WIN64
-    ULONG unknown64[7];
-#endif
+    SIZE_T MinimumWorkingSet;
+    SIZE_T MaximumWorkingSet;
+    SIZE_T CurrentSizeIncludingTransitionInPages;
+    SIZE_T PeakSizeIncludingTransitionInPages;
+    ULONG TransitionRePurposeCount;
+    ULONG Flags;
 } SYSTEM_CACHE_INFORMATION, *PSYSTEM_CACHE_INFORMATION;
 
 /* System Information Class 0x17 */




More information about the wine-cvs mailing list