зеркало из https://github.com/mozilla/gecko-dev.git
fix wrong error return; bug #57981 r=waterson, sr=brendan
This commit is contained in:
Родитель
28ab9656a4
Коммит
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);
|
||||
|
|
Загрузка…
Ссылка в новой задаче