mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 782232 - Fix more cases where bool is returned instead of nsresult; r=josh
This commit is contained in:
parent
0923bf00ef
commit
248f3b6fa5
@ -540,7 +540,7 @@ IsPluginEnabledForType(const nsCString& aMIMEType)
|
||||
|
||||
if (!pluginHost) {
|
||||
NS_NOTREACHED("No pluginhost");
|
||||
return false;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
nsresult rv = pluginHost->IsPluginEnabledForType(aMIMEType.get());
|
||||
@ -720,7 +720,7 @@ nsObjectLoadingContent::InstantiatePluginInstance()
|
||||
|
||||
if (!pluginHost) {
|
||||
NS_NOTREACHED("No pluginhost");
|
||||
return false;
|
||||
return NS_ERROR_FAILURE;
|
||||
}
|
||||
|
||||
// If you add early return(s), be sure to balance this call to
|
||||
|
Loading…
Reference in New Issue
Block a user