From 19f34d4b17a5e48bccabe7c8abf2f2b9640efdae Mon Sep 17 00:00:00 2001 From: belliash Date: Thu, 2 Feb 2023 19:42:57 +0100 Subject: [PATCH] Cleanup the code --- sdk/xtdk/amd64/ketypes.h | 18 +++++++----------- 1 file changed, 7 insertions(+), 11 deletions(-) diff --git a/sdk/xtdk/amd64/ketypes.h b/sdk/xtdk/amd64/ketypes.h index 39e63e9..cc8667e 100644 --- a/sdk/xtdk/amd64/ketypes.h +++ b/sdk/xtdk/amd64/ketypes.h @@ -444,25 +444,21 @@ typedef struct _KPROCESSOR_CONTROL_BLOCK ULONG MxCsr; UCHAR Number; ULONG64 RspBase; - ULONG_PTR SetMember; // KAFFINITY + ULONG_PTR SetMember; KPROCESSOR_STATE ProcessorState; PVOID DpcStack; - ULONG_PTR MultiThreadProcessorSet; // KAFFINITY + ULONG_PTR MultiThreadProcessorSet; } KPROCESSOR_CONTROL_BLOCK, *PKPROCESSOR_CONTROL_BLOCK; /* Processor Block structure definition */ typedef struct _KPROCESSOR_BLOCK { - union + struct { - struct - { - PKGDTENTRY GdtBase; - PKTSS TssBase; - PKPROCESSOR_BLOCK Self; - PKPROCESSOR_CONTROL_BLOCK CurrentPrcb; - - }; + PKGDTENTRY GdtBase; + PKTSS TssBase; + PKPROCESSOR_BLOCK Self; + PKPROCESSOR_CONTROL_BLOCK CurrentPrcb; }; PKIDTENTRY IdtBase; KIRQL Irql;