From efef5c9d43e882943e88d8d243b1c626c341afc8 Mon Sep 17 00:00:00 2001 From: dahall Date: Sat, 11 Jul 2020 16:25:06 -0600 Subject: [PATCH] Corrected #144 by replacing LPStr marshaled string field lpVerb and making it a ResourceId type. --- PInvoke/Shell32/ShObjIdl.IContextMenu.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/PInvoke/Shell32/ShObjIdl.IContextMenu.cs b/PInvoke/Shell32/ShObjIdl.IContextMenu.cs index 2c1cce12..1018f2c7 100644 --- a/PInvoke/Shell32/ShObjIdl.IContextMenu.cs +++ b/PInvoke/Shell32/ShObjIdl.IContextMenu.cs @@ -554,8 +554,7 @@ namespace Vanara.PInvoke /// employed. The Shell uses this alternative when the user chooses a menu command. /// /// - [MarshalAs(UnmanagedType.LPStr)] - public string lpVerb; + public ResourceId lpVerb; /// Optional parameters. This member is always NULL for menu items inserted by a Shell extension. [MarshalAs(UnmanagedType.LPStr)]