From a16440036f79b7fc1fcef2c76005de31a3d99b42 Mon Sep 17 00:00:00 2001 From: dahall Date: Fri, 22 Jul 2022 07:34:26 -0600 Subject: [PATCH] Removed Pack=4 from TRUSTEE struct per #307. It breaks on 64-bit builds. Default is sufficient for both 32 and 64-bit. --- PInvoke/Security/AdvApi32/AccCtrl.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PInvoke/Security/AdvApi32/AccCtrl.cs b/PInvoke/Security/AdvApi32/AccCtrl.cs index 9f7580ff..7c0246c2 100644 --- a/PInvoke/Security/AdvApi32/AccCtrl.cs +++ b/PInvoke/Security/AdvApi32/AccCtrl.cs @@ -882,7 +882,7 @@ namespace Vanara.PInvoke /// associated with the access control or audit control information in an EXPLICIT_ACCESS structure. /// /// - [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto, Pack = 4)] + [StructLayout(LayoutKind.Sequential, CharSet = CharSet.Auto)] [PInvokeData("AccCtrl.h", MSDNShortId = "aa379636")] public struct TRUSTEE {