From 5acbd3aae5b7cb12d0fb672544b6ec32b320f525 Mon Sep 17 00:00:00 2001
From: Biswapriyo Nath <[email protected]>
Date: Tue, 28 Jul 2020 10:37:06 +0530
Subject: [PATCH 4/5] include/psapi.h: update union PSAPI_WORKING_SET_EX_BLOCK

Signed-off-by: Biswapriyo Nath <[email protected]>
---
 mingw-w64-headers/include/psapi.h | 35 +++++++++++++++++++++++--------
 1 file changed, 26 insertions(+), 9 deletions(-)

diff --git a/mingw-w64-headers/include/psapi.h 
b/mingw-w64-headers/include/psapi.h
index 4b17dd6..e02b942 100644
--- a/mingw-w64-headers/include/psapi.h
+++ b/mingw-w64-headers/include/psapi.h
@@ -213,15 +213,32 @@ typedef struct _PSAPI_WORKING_SET_INFORMATION {
 
 typedef union _PSAPI_WORKING_SET_EX_BLOCK {
   ULONG_PTR Flags;
-  __C89_NAMELESS struct {
-    ULONG_PTR Valid  :1;
-    ULONG_PTR ShareCount  :3;
-    ULONG_PTR Win32Protection  :11;
-    ULONG_PTR Shared  :1;
-    ULONG_PTR Node  :6;
-    ULONG_PTR Locked  :1;
-    ULONG_PTR LargePage  :1;
-  } DUMMYSTRUCTNAME;
+  __C89_NAMELESS union {
+    __C89_NAMELESS struct {
+      ULONG_PTR Valid : 1;
+      ULONG_PTR ShareCount : 3;
+      ULONG_PTR Win32Protection : 11;
+      ULONG_PTR Shared : 1;
+      ULONG_PTR Node : 6;
+      ULONG_PTR Locked : 1;
+      ULONG_PTR LargePage : 1;
+      ULONG_PTR Reserved : 7;
+      ULONG_PTR Bad : 1;
+#ifdef _WIN64
+      ULONG_PTR ReservedUlong : 32;
+#endif
+    };
+    struct {
+      ULONG_PTR Valid : 1;
+      ULONG_PTR Reserved0 : 14;
+      ULONG_PTR Shared : 1;
+      ULONG_PTR Reserved1 : 15;
+      ULONG_PTR Bad : 1;
+#ifdef _WIN64
+      ULONG_PTR ReservedUlong : 32;
+#endif
+    } Invalid;
+  };
 } PSAPI_WORKING_SET_EX_BLOCK, *PPSAPI_WORKING_SET_EX_BLOCK;
 
 typedef struct _PSAPI_WORKING_SET_EX_INFORMATION {
-- 
2.27.0

_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public

Reply via email to