fix wrong error return; bug #57981 r=waterson, sr=brendan

This commit is contained in:
scc%mozilla.org 2000-10-27 21:46:20 +00:00
parent 28ab9656a4
commit d2593e5546
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ nsSupportsWeakReference::GetWeakReference( nsIWeakReference** aInstancePtr )
nsresult status;
if ( !*aInstancePtr )
status = NS_NOINTERFACE;
status = NS_ERROR_OUT_OF_MEMORY;
else
{
NS_ADDREF(*aInstancePtr);

View File

@ -77,7 +77,7 @@ nsSupportsWeakReference::GetWeakReference( nsIWeakReference** aInstancePtr )
nsresult status;
if ( !*aInstancePtr )
status = NS_NOINTERFACE;
status = NS_ERROR_OUT_OF_MEMORY;
else
{
NS_ADDREF(*aInstancePtr);