From d9eb2840132d0ca4690630d014cbe1b3f7f25ef1 Mon Sep 17 00:00:00 2001 From: dahall Date: Thu, 18 Mar 2021 14:59:54 -0600 Subject: [PATCH] Fixed bug in FreePropVariantArray param definition --- PInvoke/Ole/Ole32/ComBaseApi.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PInvoke/Ole/Ole32/ComBaseApi.cs b/PInvoke/Ole/Ole32/ComBaseApi.cs index 3a741675..126c464b 100644 --- a/PInvoke/Ole/Ole32/ComBaseApi.cs +++ b/PInvoke/Ole/Ole32/ComBaseApi.cs @@ -3863,7 +3863,7 @@ namespace Vanara.PInvoke // FreePropVariantArray( ULONG cVariants, PROPVARIANT *rgvars ); [DllImport(Lib.Ole32, SetLastError = false, ExactSpelling = true)] [PInvokeData("combaseapi.h", MSDNShortId = "2eefb57e-9311-46e1-9eed-e25aa3b5afaa")] - public static extern HRESULT FreePropVariantArray(uint cVariants, PROPVARIANT rgvars); + public static extern HRESULT FreePropVariantArray(uint cVariants, [MarshalAs(UnmanagedType.LPArray, SizeParamIndex = 0)] PROPVARIANT[] rgvars); /// /// The GetHGlobalFromStream function retrieves the global memory handle to a stream that was created through a call to the