Browse Source

Merge pull request #174 from boq/master

Proper SetClipboardData usage
Adam Johnson 13 years ago
parent
commit
9ea5f9df81
  1. 3
      Sources/Plasma/PubUtilLib/plClipboard/plClipboard.cpp

3
Sources/Plasma/PubUtilLib/plClipboard/plClipboard.cpp

@ -107,8 +107,7 @@ void plClipboard::SetClipboardText(const plString& text)
target[len] = '\0';
::GlobalUnlock(copy);
// Place the handle on the clipboard.
::SetClipboardData(CF_UNICODETEXT, target);
::SetClipboardData(CF_UNICODETEXT, copy);
::CloseClipboard();
#endif
}

Loading…
Cancel
Save