Bug 750901 - Revert change to nsClipboard and remove ancient crufty commented out code. r=bbondy
authorJim Mathies <jmathies@mozilla.com>
Fri, 02 Nov 2012 09:30:57 -0500
changeset 112165 b095fe02009e02b1798ee68da1ffe42c2c857056
parent 112164 57eeca4191dd1d38f7d2351406565105d6fc8e9c
child 112166 5981344041a1465d3d34f03317e4b11331fa5952
push id23798
push userryanvm@gmail.com
push dateSat, 03 Nov 2012 00:06:35 +0000
treeherdermozilla-central@6134edeea902 [default view] [failures only]
perfherder[talos] [build metrics] [platform microbench] (compared to previous push)
reviewersbbondy
bugs750901
milestone19.0a1
first release with
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
last release without
nightly linux32
nightly linux64
nightly mac
nightly win32
nightly win64
Bug 750901 - Revert change to nsClipboard and remove ancient crufty commented out code. r=bbondy
widget/windows/nsClipboard.cpp
--- a/widget/windows/nsClipboard.cpp
+++ b/widget/windows/nsClipboard.cpp
@@ -303,17 +303,17 @@ nsresult nsClipboard::GetGlobalData(HGLO
 }
 
 //-------------------------------------------------------------------------
 nsresult nsClipboard::GetNativeDataOffClipboard(nsIWidget * aWidget, UINT /*aIndex*/, UINT aFormat, void ** aData, uint32_t * aLen)
 {
   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);
     ::CloseClipboard();
   }
   return result;
 }