Bug 90065 - nsAppShellService::GetNativeAppSupport returns NS_OK even when it fails, causing crash. r=valeski/sr=blake

This commit is contained in:
ccarlen%netscape.com 2001-07-12 14:44:27 +00:00
parent a640b69754
commit 12d5c044ec

View File

@ -933,5 +933,5 @@ nsAppShellService::GetNativeAppSupport( nsINativeAppSupport **aResult ) {
NS_ENSURE_ARG( aResult ); NS_ENSURE_ARG( aResult );
*aResult = mNativeAppSupport; *aResult = mNativeAppSupport;
NS_IF_ADDREF( *aResult ); NS_IF_ADDREF( *aResult );
return NS_OK; return *aResult ? NS_OK : NS_ERROR_NULL_POINTER;
} }