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'; target[len] = '\0';
::GlobalUnlock(copy); ::GlobalUnlock(copy);
// Place the handle on the clipboard. ::SetClipboardData(CF_UNICODETEXT, copy);
::SetClipboardData(CF_UNICODETEXT, target);
::CloseClipboard(); ::CloseClipboard();
#endif #endif
} }

Loading…
Cancel
Save