mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 06:11:37 +00:00
fix wrong error return; bug #57981 r=waterson, sr=brendan
This commit is contained in:
parent
28ab9656a4
commit
d2593e5546
@ -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);
|
||||
|
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user