forked from bartvdbraak/blender
Forgot to close clipboard when lock fails.
Thanks to jesterKing!
This commit is contained in:
parent
1d6278f80a
commit
57c626d11c
@ -1186,6 +1186,7 @@ GHOST_TUns8* GHOST_SystemWin32::getClipboard(bool selection) const
|
|||||||
}
|
}
|
||||||
buffer = (char*)GlobalLock( hData );
|
buffer = (char*)GlobalLock( hData );
|
||||||
if (!buffer) {
|
if (!buffer) {
|
||||||
|
CloseClipboard();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user