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 21461eaefb
commit 8e9ca8a01b
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);