File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,11 @@ namespace CefSharp.Wpf.Rendering
2020 /// <seealso cref="CefSharp.Wpf.IRenderHandler" />
2121 public abstract class AbstractRenderHandler : IDisposable , IRenderHandler
2222 {
23- [ DllImport ( "kernel32.dll" , EntryPoint = "RtlCopyMemory" , SetLastError = false ) ]
23+ //RtlCopyMemory doesn't actually exist as a function,it's an alias and only exists
24+ //when running as a 64bit process. According to https://stackoverflow.com/a/47016390/4583726
25+ //EntryPoint = "CopyMemory" was being mapped to RtlMoveMemory on Windows 10 at least
26+ //Will update to the faster RtlCopyMemory later.
27+ [ DllImport ( "kernel32.dll" , EntryPoint = "RtlMoveMemory" , SetLastError = false ) ]
2428 protected static extern void CopyMemory ( IntPtr dest , IntPtr src , uint count ) ;
2529
2630 internal static readonly PixelFormat PixelFormat = PixelFormats . Pbgra32 ;
You can’t perform that action at this time.
0 commit comments