mirror of
https://github.com/SFML/SFML.git
synced 2024-12-01 07:41:05 +08:00
Close the clipboard if we fail to empty it
This commit is contained in:
parent
1a4003fcc0
commit
06946793b4
@ -81,6 +81,7 @@ void ClipboardImpl::setString(const String& text)
|
|||||||
if (!EmptyClipboard())
|
if (!EmptyClipboard())
|
||||||
{
|
{
|
||||||
std::cerr << "Failed to empty the Win32 clipboard." << std::endl;
|
std::cerr << "Failed to empty the Win32 clipboard." << std::endl;
|
||||||
|
CloseClipboard();
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user