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 b159aab211
commit 145ffadfee

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);