1
0
mirror of https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git synced 2025-07-20 12:19:10 +00:00

Fix possible WinApi misuse

This commit is contained in:
Bartek Bok
2012-03-05 11:06:05 +01:00
parent a99ed37f23
commit e4458717c9

View File

@ -106,8 +106,7 @@ void plClipboard::SetClipboardText(const wchar_t* text)
wcsncpy(target, text, len + 1);
::GlobalUnlock(copy);
// Place the handle on the clipboard.
::SetClipboardData(CF_UNICODETEXT, target);
::SetClipboardData(CF_UNICODETEXT, copy);
::CloseClipboard();
#endif
}