mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 842687 - Test for uint32_t plug-in value; r=bsmedberg
This commit is contained in:
parent
5c32b0dad7
commit
961f449d4a
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user