Browse Source

Fix WinApi call misuse

Bartek Bok 13 years ago
parent
commit
f158f97776
  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