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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user