Skip to content

Commit c11157f

Browse files
committed
WPF - Change CopyMemory PInvoke signature to work with .Net Core
.Net could fails with exception "Unable to find an entry point named 'CopyMemory' in DLL 'kernel32.dll`" as the export doesn't exist see reference https://github.com/dotnet/coreclr/issues/24008 Issue #2053
1 parent f487f2b commit c11157f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

CefSharp.Wpf/Rendering/AbstractRenderHandler.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ namespace CefSharp.Wpf.Rendering
2020
/// <seealso cref="CefSharp.Wpf.IRenderHandler" />
2121
public abstract class AbstractRenderHandler : IDisposable, IRenderHandler
2222
{
23-
[DllImport("kernel32.dll", EntryPoint = "CopyMemory", SetLastError = false)]
23+
[DllImport("kernel32.dll", EntryPoint = "RtlCopyMemory", SetLastError = false)]
2424
protected static extern void CopyMemory(IntPtr dest, IntPtr src, uint count);
2525

2626
internal static readonly PixelFormat PixelFormat = PixelFormats.Pbgra32;

0 commit comments

Comments
 (0)