equalsraf / win32yank

Windows clipboard tool
ISC License
444 stars 22 forks source link

Verify clipboard contents before getting data #1

Closed equalsraf closed 7 years ago

equalsraf commented 7 years ago

As reported by @mqudsi in https://github.com/neovim/neovim/issues/6227#issuecomment-284578955

See https://retep998.github.io/doc/user32/fn.EnumClipboardFormats.html

equalsraf commented 7 years ago

Interesting, while testing https://github.com/equalsraf/win32yank/pull/2 it seems that if the clipboard does not have the format, it does return an error, not gibberish data.

equalsraf commented 7 years ago

Closed by #2

mqudsi commented 7 years ago

Forgive me, I was running into a different error when binary data was copied to the clipboard.