Don't let plugin return a null window object and NPERR_NO_ERROR, r=jst.

This commit is contained in:
Ben Turner 2009-12-01 15:08:16 -08:00
parent cbf1241f3c
commit a6336324be

View File

@ -2080,7 +2080,7 @@ _getvalue(NPP npp, NPNVariable variable, void *result)
case NPNVWindowNPObject: {
*(NPObject **)result = _getwindowobject(npp);
return NPERR_NO_ERROR;
return *(NPObject **)result ? NPERR_NO_ERROR : NPERR_GENERIC_ERROR;
}
case NPNVPluginElementNPObject: {