Fix for bug 531290 (Firefox 3.6b4 [@ PL_strlen | nsNPAPIPluginInstance::Initialize(nsIPluginInstanceOwner*, char const*) ] during npietab.dll initialization [@nsCOMPtr_base::assign_from_qi(nsQueryInterface, nsID const&) | xul.dll@0x9cc3c3 ]). r=josh, a=blocking1.9.2+.

This commit is contained in:
Johnny Stenback 2009-11-30 11:11:20 +01:00
Родитель 68811d1d7f
Коммит 284cdb995e
1 изменённых файлов: 10 добавлений и 2 удалений

Просмотреть файл

@ -2065,9 +2065,17 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
return NPERR_GENERIC_ERROR;
}
#else
case NPNVDOMElement:
// fall through
case NPNVDOMWindow:
// fall through
#endif /* WINCE */
case NPNVserviceManager: // old XPCOM object, no longer supported
case NPNVserviceManager:
// old XPCOM objects, no longer supported, but null out the out
// param to avoid crashing plugins that still try to use this.
*(nsISupports**)result = nsnull;
// fall through
default:
return NPERR_GENERIC_ERROR;
}