mirror of
https://foundry.openuru.org/gitblit/r/CWE-ou-minkata.git
synced 2025-07-14 02:27:40 -04:00
Fix WinApi call misuse
This commit is contained in:
@ -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
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user