Fix silly bugs

This commit is contained in:
Ben Turner 2009-11-09 17:30:02 -08:00
parent c1f7d557dc
commit 401a6884be
2 changed files with 2 additions and 3 deletions

View File

@ -192,9 +192,7 @@ PluginModuleChild::AnswerNP_Shutdown(NPError *rv)
// FIXME/cjones: should all instances be dead by now?
if (mShutdownFunc)
*rv = mShutdownFunc();
*rv = mShutdownFunc ? mShutdownFunc() : NPERR_NO_ERROR;
return true;
}

View File

@ -1823,5 +1823,6 @@ setColor(NPObject* npobj, const NPVariant* args, uint32_t argCount, NPVariant* r
r.bottom = id->window.height;
NPN_InvalidateRect(npp, &r);
VOID_TO_NPVARIANT(*result);
return true;
}