mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-15 22:35:43 +00:00
NOT PART OF BUILD. ActiveX plugin. Treat PARAMs with "True"/"False" values as VT_BOOL properties.
This commit is contained in:
parent
80647b66e6
commit
78de0c12c1
@ -236,9 +236,10 @@ NPError NewControl(const char *pluginType,
|
||||
CComVariant vsValue(szParam.c_str());
|
||||
CComVariant vIValue; // Value converted to int
|
||||
CComVariant vRValue; // Value converted to real
|
||||
CComVariant vBValue; // Value converted to bool
|
||||
CComVariant &vValue = vsValue;
|
||||
|
||||
// See if the variant can be converted to an integer
|
||||
// See if the variant can be converted to a number or boolean
|
||||
if (VariantChangeType(&vIValue, &vsValue, 0, VT_I4) == S_OK)
|
||||
{
|
||||
vValue = vIValue;
|
||||
@ -247,6 +248,11 @@ NPError NewControl(const char *pluginType,
|
||||
{
|
||||
vValue = vRValue;
|
||||
}
|
||||
else if (VariantChangeType(&vBValue, &vsValue, 0, VT_BOOL) == S_OK)
|
||||
{
|
||||
vValue = vBValue;
|
||||
}
|
||||
|
||||
|
||||
// Add named parameter to list
|
||||
Property p;
|
||||
|
Loading…
Reference in New Issue
Block a user