mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-26 14:22:01 +00:00
Bug 90065 - nsAppShellService::GetNativeAppSupport returns NS_OK even when it fails, causing crash. r=valeski/sr=blake
This commit is contained in:
parent
a640b69754
commit
12d5c044ec
@ -933,5 +933,5 @@ nsAppShellService::GetNativeAppSupport( nsINativeAppSupport **aResult ) {
|
||||
NS_ENSURE_ARG( aResult );
|
||||
*aResult = mNativeAppSupport;
|
||||
NS_IF_ADDREF( *aResult );
|
||||
return NS_OK;
|
||||
return *aResult ? NS_OK : NS_ERROR_NULL_POINTER;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user