mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 883554 - Only empty clipboard for known clipboard types (global). r=jimm
This commit is contained in:
parent
43e7a2d9e9
commit
33e795e578
@ -927,7 +927,7 @@ nsClipboard::GetNativeClipboardData ( nsITransferable * aTransferable, int32_t a
|
||||
NS_IMETHODIMP
|
||||
nsClipboard::EmptyClipboard(int32_t aWhichClipboard)
|
||||
{
|
||||
if (::OpenClipboard(nullptr)) {
|
||||
if (aWhichClipboard == kGlobalClipboard && ::OpenClipboard(nullptr)) {
|
||||
::EmptyClipboard();
|
||||
::CloseClipboard();
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user