diff --git a/xpcom/components/nsIGenericFactory.h b/xpcom/components/nsIGenericFactory.h index 5093a191bf9e..7bcaef7c4b5a 100644 --- a/xpcom/components/nsIGenericFactory.h +++ b/xpcom/components/nsIGenericFactory.h @@ -62,7 +62,7 @@ NS_NewGenericFactory(nsIGenericFactory* *result, nsIGenericFactory::DestructorProcPtr destructor = NULL); #define NS_GENERIC_FACTORY_CONSTRUCTOR(_InstanceClass) \ -static nsresult \ +static NS_IMETHODIMP \ _InstanceClass##Constructor(nsISupports *aOuter, REFNSIID aIID, void **aResult) \ { \ nsresult rv; \ diff --git a/xpcom/glue/nsIGenericFactory.h b/xpcom/glue/nsIGenericFactory.h index 5093a191bf9e..7bcaef7c4b5a 100644 --- a/xpcom/glue/nsIGenericFactory.h +++ b/xpcom/glue/nsIGenericFactory.h @@ -62,7 +62,7 @@ NS_NewGenericFactory(nsIGenericFactory* *result, nsIGenericFactory::DestructorProcPtr destructor = NULL); #define NS_GENERIC_FACTORY_CONSTRUCTOR(_InstanceClass) \ -static nsresult \ +static NS_IMETHODIMP \ _InstanceClass##Constructor(nsISupports *aOuter, REFNSIID aIID, void **aResult) \ { \ nsresult rv; \