diff --git a/mozilla/xpcom/proxy/src/nsProxyObjectManager.cpp b/mozilla/xpcom/proxy/src/nsProxyObjectManager.cpp index e597767794d..c8c12d1a994 100644 --- a/mozilla/xpcom/proxy/src/nsProxyObjectManager.cpp +++ b/mozilla/xpcom/proxy/src/nsProxyObjectManager.cpp @@ -181,12 +181,12 @@ nsProxyObjectManager::GetProxyObject(nsIEventQueue *destQueue, REFNSIID aIID, ns } } - nsCOMPtr realObject; + nsISupports* realObject; // we need to do make sure that we addref the passed in object as well as ensure // that it is of the requested IID; - rv = aObj->QueryInterface(aIID, getter_AddRefs(realObject)); + rv = aObj->QueryInterface(aIID, (void**)&realObject); if ( NS_FAILED( rv ) ) return rv;