diff --git a/mozilla/xpcom/base/nsCOMPtr.cpp b/mozilla/xpcom/base/nsCOMPtr.cpp index 9db358629de..35e7bdd0249 100644 --- a/mozilla/xpcom/base/nsCOMPtr.cpp +++ b/mozilla/xpcom/base/nsCOMPtr.cpp @@ -50,5 +50,5 @@ nsCOMPtr_base::begin_assignment() if ( mRawPtr ) NSCAP_RELEASE(mRawPtr); mRawPtr = 0; - return NSCAP_REINTERPRET_CAST(void**, mRawPtr); + return NSCAP_REINTERPRET_CAST(void**, &mRawPtr); } diff --git a/mozilla/xpcom/glue/nsCOMPtr.cpp b/mozilla/xpcom/glue/nsCOMPtr.cpp index 9db358629de..35e7bdd0249 100644 --- a/mozilla/xpcom/glue/nsCOMPtr.cpp +++ b/mozilla/xpcom/glue/nsCOMPtr.cpp @@ -50,5 +50,5 @@ nsCOMPtr_base::begin_assignment() if ( mRawPtr ) NSCAP_RELEASE(mRawPtr); mRawPtr = 0; - return NSCAP_REINTERPRET_CAST(void**, mRawPtr); + return NSCAP_REINTERPRET_CAST(void**, &mRawPtr); } diff --git a/mozilla/xpcom/src/nsCOMPtr.cpp b/mozilla/xpcom/src/nsCOMPtr.cpp index 9db358629de..35e7bdd0249 100644 --- a/mozilla/xpcom/src/nsCOMPtr.cpp +++ b/mozilla/xpcom/src/nsCOMPtr.cpp @@ -50,5 +50,5 @@ nsCOMPtr_base::begin_assignment() if ( mRawPtr ) NSCAP_RELEASE(mRawPtr); mRawPtr = 0; - return NSCAP_REINTERPRET_CAST(void**, mRawPtr); + return NSCAP_REINTERPRET_CAST(void**, &mRawPtr); }