New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix WindowsClipboard.SetText being broken #1573

merged 5 commits into from Jun 1, 2018


4 participants

ekrctb commented May 29, 2018

Fixes #1572.


This comment has been minimized.


UselessToucan commented May 30, 2018

Did you check this on both platforms? I mean netcore and net471 on Windows.

@@ -121,7 +121,7 @@ public override void SetText(string selectedText)
CopyMemory(target, source, bytes);
RtlCopyMemory(target, source, (UIntPtr)bytes);

This comment has been minimized.


smoogipoo May 31, 2018


Would rather use System.Buffer.MemoryCopy and avoid the pinvoke.


This comment has been minimized.


ekrctb commented May 31, 2018

I have tested on both net471 and netcore.


This comment has been minimized.


peppy commented Jun 1, 2018

Seems to work correctly on both runtimes 👍



peppy approved these changes Jun 1, 2018

@peppy peppy merged commit 508301b into ppy:master Jun 1, 2018

1 check passed

continuous-integration/appveyor/pr AppVeyor build succeeded

@ekrctb ekrctb deleted the ekrctb:fix-windows-clipboard-copy branch Jun 1, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment