diff --git a/xpcom/base/nsISupportsUtils.h b/xpcom/base/nsISupportsUtils.h index 88561a207c5..47d3ec46add 100644 --- a/xpcom/base/nsISupportsUtils.h +++ b/xpcom/base/nsISupportsUtils.h @@ -267,7 +267,7 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \ foundInterface = 0; \ nsresult status; \ if ( !foundInterface ) \ - status = _baseclass::QueryInterface(aIID, aInstancePtr); \ + status = _baseclass::QueryInterface(aIID, &foundInterface); \ else \ { \ NS_ADDREF(foundInterface); \ diff --git a/xpcom/glue/nsISupportsUtils.h b/xpcom/glue/nsISupportsUtils.h index 88561a207c5..47d3ec46add 100644 --- a/xpcom/glue/nsISupportsUtils.h +++ b/xpcom/glue/nsISupportsUtils.h @@ -267,7 +267,7 @@ NS_IMETHODIMP _class::QueryInterface(REFNSIID aIID, void** aInstancePtr) \ foundInterface = 0; \ nsresult status; \ if ( !foundInterface ) \ - status = _baseclass::QueryInterface(aIID, aInstancePtr); \ + status = _baseclass::QueryInterface(aIID, &foundInterface); \ else \ { \ NS_ADDREF(foundInterface); \