mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-07-11 22:03:01 -06:00
*CtrlCore: Fixed error handling of SetClipboardData when handle is NULL
git-svn-id: svn://ultimatepp.org/upp/trunk@4633 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
45c726d65a
commit
b5586ca84b
1 changed files with 1 additions and 1 deletions
|
|
@ -131,7 +131,7 @@ void SetClipboardRaw(int format, const byte *data, int length)
|
|||
ptr[length + 1] = 0;
|
||||
GlobalUnlock(handle);
|
||||
}
|
||||
if(!SetClipboardData(format, handle)) {
|
||||
if(SetClipboardData(format, handle) != handle) {
|
||||
ClipboardError("SetCliboardData", format);
|
||||
LLOG("SetClipboardData error: " << GetLastErrorMessage());
|
||||
GlobalFree(handle);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue