Bug 842687 - Test for uint32_t plug-in value; r=bsmedberg

This commit is contained in:
Georg Fritzsche 2013-02-20 20:17:21 +01:00
parent 5c32b0dad7
commit 961f449d4a

View File

@ -1511,11 +1511,13 @@ NPP_GetValue(NPP instance, NPPVariable variable, void* value)
}
if (variable == NPPVpluginNeedsXEmbed) {
// Only relevant for X plugins
*(NPBool*)value = instanceData->hasWidget;
// use 4-byte writes like some plugins may do
*(uint32_t*)value = instanceData->hasWidget;
return NPERR_NO_ERROR;
}
if (variable == NPPVpluginWantsAllNetworkStreams) {
*(NPBool*)value = instanceData->wantsAllStreams;
// use 4-byte writes like some plugins may do
*(uint32_t*)value = instanceData->wantsAllStreams;
return NPERR_NO_ERROR;
}