From 3c61435c3034f45303dbf9cafb574106e56523ef Mon Sep 17 00:00:00 2001 From: "mhammond%skippinet.com.au" Date: Wed, 1 Nov 2006 11:37:46 +0000 Subject: [PATCH] GetAsISupports was actually calling GetAsInterface. Not part of the default build. git-svn-id: svn://10.0.0.236/trunk@214525 18797224-902f-48f8-a5cc-f745e15eee43 --- mozilla/extensions/python/xpcom/src/PyIVariant.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/mozilla/extensions/python/xpcom/src/PyIVariant.cpp b/mozilla/extensions/python/xpcom/src/PyIVariant.cpp index 8d1f0dcd4dd..ca5524408af 100644 --- a/mozilla/extensions/python/xpcom/src/PyIVariant.cpp +++ b/mozilla/extensions/python/xpcom/src/PyIVariant.cpp @@ -141,12 +141,11 @@ static PyObject *GetAsInterface(PyObject *self, PyObject *args) { static PyObject *GetAsISupports(PyObject *self, PyObject *args) { nsIVariant *pI = GetI(self); if (pI==NULL) return NULL; - if (!PyArg_ParseTuple(args, ":GetAsInterface")) return NULL; + if (!PyArg_ParseTuple(args, ":GetAsISupports")) return NULL; nsCOMPtr p; - nsIID *iid; - nsresult nr = pI->GetAsInterface(&iid, getter_AddRefs(p)); + nsresult nr = pI->GetAsISupports(getter_AddRefs(p)); if (NS_FAILED(nr)) return PyXPCOM_BuildPyException(nr); - return Py_nsISupports::PyObjectFromInterface(p, *iid); + return Py_nsISupports::PyObjectFromInterface(p, NS_GET_IID(nsISupports)); } extern PyObject *PyObject_FromVariantArray( Py_nsISupports*, nsIVariant *v);