Forgot to close clipboard when lock fails.

Thanks to jesterKing!
This commit is contained in:
Sergey Sharybin 2011-05-12 18:04:24 +00:00
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;
} }