Fixed hasClipboardText() on windows.

This commit is contained in:
and3md 2017-09-23 17:39:43 +02:00
parent bedf11e8f9
commit 541722faa8
1 changed files with 1 additions and 1 deletions

View File

@ -1162,7 +1162,7 @@ class Win32Platform : Platform {
override bool hasClipboardText(bool mouseBuffer = false) {
if (mouseBuffer)
return false;
return IsClipboardFormatAvailable(CF_UNICODETEXT);
return (IsClipboardFormatAvailable(CF_UNICODETEXT) != 0);
}
/// retrieves text from clipboard (when mouseBuffer == true, use mouse selection clipboard - under linux)