Port clipboard improvements from inbox to oss (#16670)
#16618 contained a bug which was fixed inbox. This ports the changes to the OSS repo manually since the two slightly diverged.
This commit is contained in:
parent
ef96e225da
commit
b70fd5e9c6
|
@ -358,6 +358,11 @@ void Clipboard::StoreSelectionToClipboard(const bool copyFormatting)
|
|||
}
|
||||
|
||||
const auto clipboard = _openClipboard(ServiceLocator::LocateConsoleWindow()->GetWindowHandle());
|
||||
if (!clipboard)
|
||||
{
|
||||
LOG_LAST_ERROR();
|
||||
return;
|
||||
}
|
||||
|
||||
EmptyClipboard();
|
||||
// As per: https://learn.microsoft.com/en-us/windows/win32/dataxchg/standard-clipboard-formats
|
||||
|
|
Loading…
Reference in New Issue