Browse Source

Merge pull request #12553 from EgorRudakov2/fix_wait_for_OleGetClipboard

Set PreserveSig to true for OleGetClipboard
pull/12563/head
Max Katz 3 years ago
committed by GitHub
parent
commit
5eeb46f0bc
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      src/Windows/Avalonia.Win32/Interop/UnmanagedMethods.cs

2
src/Windows/Avalonia.Win32/Interop/UnmanagedMethods.cs

@ -1509,7 +1509,7 @@ namespace Avalonia.Win32.Interop
[DllImport("user32.dll")]
public static extern IntPtr SetClipboardData(ClipboardFormat uFormat, IntPtr hMem);
[DllImport("ole32.dll", PreserveSig = false)]
[DllImport("ole32.dll", PreserveSig = true)]
public static extern int OleGetClipboard(out IntPtr dataObject);
[DllImport("ole32.dll", PreserveSig = true)]

Loading…
Cancel
Save