We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 416ca3e commit 73dfa57Copy full SHA for 73dfa57
1 file changed
PSReadLine/Clipboard.cs
@@ -72,7 +72,7 @@ public static void SetRtf(string plainText, string rtfText)
72
[return: MarshalAs(UnmanagedType.Bool)]
73
private static extern bool GlobalUnlock(IntPtr hMem);
74
75
- [DllImport("kernel32.dll", EntryPoint = "CopyMemory", SetLastError = false)]
+ [DllImport("kernel32.dll", ExactSpelling = true, EntryPoint = "RtlMoveMemory", SetLastError = true)]
76
private static extern void CopyMemory(IntPtr dest, IntPtr src, uint count);
77
78
[DllImport("user32.dll", SetLastError = false)]
0 commit comments