mirror of
https://github.com/cefsharp/CefSharp.git
synced 2026-12-06 04:00:07 +00:00
WPF - Replace RtlCopyMemory p/invoke with NativeMethodWrapper.MemoryCopy
- RtlCopyMemory only works on x64, we could use the slower RtlMoveMemory, going with a native wrapper around RtlCopyMemory - Renamed CopyMemoryUsingHandle to MemoryCopy (cannot be CopyMemory or RtlCopyMemory as macro with that name already exists) https://github.com/cefsharp/CefSharp/pull/2885#issuecomment-529033351 Issue #2885
This commit is contained in:
@@ -8,9 +8,9 @@
|
||||
|
||||
namespace CefSharp
|
||||
{
|
||||
void NativeMethodWrapper::CopyMemoryUsingHandle(IntPtr dest, IntPtr src, int numberOfBytes)
|
||||
void NativeMethodWrapper::MemoryCopy(IntPtr dest, IntPtr src, int numberOfBytes)
|
||||
{
|
||||
CopyMemory(dest.ToPointer(), src.ToPointer(), numberOfBytes);
|
||||
RtlCopyMemory(dest.ToPointer(), src.ToPointer(), numberOfBytes);
|
||||
}
|
||||
|
||||
bool NativeMethodWrapper::IsFocused(IntPtr handle)
|
||||
|
||||
Reference in New Issue
Block a user