mirror of
https://github.com/SFML/SFML.git
synced 2024-11-24 20:31: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())
|
||||
{
|
||||
std::cerr << "Failed to empty the Win32 clipboard." << std::endl;
|
||||
CloseClipboard();
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user