From ae9becb522162f85ea139d8df07210ab3e692bf7 Mon Sep 17 00:00:00 2001 From: Andrii Kurdiumov Date: Mon, 4 Jul 2022 17:54:05 +0600 Subject: [PATCH] Fix QueryInsertEmbedded parameter type (#6622) * Fix QueryInsertEmbedded parameter type * Fix compilation error --- .../PresentationFramework/System/Windows/Documents/TextStore.cs | 2 +- .../src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs index eca91af61..ac7c8d4ab 100644 --- a/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs +++ b/src/Microsoft.DotNet.Wpf/src/PresentationFramework/System/Windows/Documents/TextStore.cs @@ -586,7 +586,7 @@ public void GetEmbedded(int index, ref Guid guidService, ref Guid riid, out obje } // See msdn's ITextStoreACP documentation for a full description. - public void QueryInsertEmbedded(ref Guid guidService, int formatEtc, out bool insertable) + public void QueryInsertEmbedded(ref Guid guidService, IntPtr formatEtc, out bool insertable) { #if true // diff --git a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs index 4de87412c..aa4fd7786 100644 --- a/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs +++ b/src/Microsoft.DotNet.Wpf/src/Shared/MS/Win32/UnsafeNativeMethodsTextServices.cs @@ -1630,7 +1630,7 @@ public interface ITextStoreACP //HRESULT QueryInsertEmbedded([in] const GUID *pguidService, // [in] const FORMATETC *pFormatEtc, // [out] BOOL *pfInsertable); - void QueryInsertEmbedded(ref Guid guidService, int /*ref Win32.FORMATETC*/ formatEtc, [MarshalAs(UnmanagedType.Bool)] out bool insertable); + void QueryInsertEmbedded(ref Guid guidService, IntPtr /*ref Win32.FORMATETC*/ formatEtc, [MarshalAs(UnmanagedType.Bool)] out bool insertable); /// //HRESULT InsertEmbedded([in] DWORD dwFlags, -- GitLab