Bug 750901 - Revert change to nsClipboard and remove ancient crufty commented out code. r=bbondy

This commit is contained in:
Jim Mathies 2012-11-02 09:30:57 -05:00
parent 14d92519c8
commit 6bcfeb8db8

View File

@ -308,7 +308,7 @@ nsresult nsClipboard::GetNativeDataOffClipboard(nsIWidget * aWidget, UINT /*aInd
HGLOBAL hglb;
nsresult result = NS_ERROR_FAILURE;
HWND nativeWin = (HWND)aWidget->GetNativeData(NS_NATIVE_WINDOW);
HWND nativeWin = nullptr;
if (::OpenClipboard(nativeWin)) {
hglb = ::GetClipboardData(aFormat);
result = GetGlobalData(hglb, aData, aLen);