Bug 998741 - Fix XULRunner builds; r=bsmedberg
authorEhsan Akhgari <ehsan@mozilla.com>
Tue, 22 Apr 2014 14:58:19 -0400
changeset 179961 418c50532eea49db1b765db1db23bac93403ac08
parent 179960 139c2e8c264ff015779ca62b87b81f41396542be
child 179962 72661e0787418f3652200dc6c930947ad13f49dc
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersbsmedberg
bugs998741
milestone31.0a1
Bug 998741 - Fix XULRunner builds; r=bsmedberg
embedding/tests/winEmbed/winEmbed.cpp
--- a/embedding/tests/winEmbed/winEmbed.cpp
+++ b/embedding/tests/winEmbed/winEmbed.cpp
@@ -1072,17 +1072,17 @@ nsresult AppCallbacks::CreateBrowserWind
            nsIWebBrowserChrome **aNewWindow)
 {
   WebBrowserChrome * chrome = new WebBrowserChrome();
   if (!chrome)
     return NS_ERROR_FAILURE;
 
   // the interface to return and one addref, which we assume will be
   // immediately released
-  CallQueryInterface(static_cast<nsIWebBrowserChrome*>(chrome), aNewWindow);
+  *aNewWindow = static_cast<nsIWebBrowserChrome*>(chrome);
   // now an extra addref; the window owns itself (to be released by
   // WebBrowserChromeUI::Destroy)
   NS_ADDREF(*aNewWindow);
 
   chrome->SetChromeFlags(aChromeFlags);
   chrome->SetParent(aParent);
 
   // Insert the browser