mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Fix braindead variant conversion bug, r=cjones, no bug
This commit is contained in:
parent
880f1e0c90
commit
7aae9fc552
@ -218,10 +218,11 @@ public:
|
||||
if (!(remoteVariant &&
|
||||
ConvertToRemoteVariant(aArgs[index], *remoteVariant, aInstance,
|
||||
true))) {
|
||||
break;
|
||||
mOk = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
mOk = mArray.Length() == aCount;
|
||||
mOk = true;
|
||||
}
|
||||
|
||||
ProtectedVariantArray(const NPVariant* aArgs,
|
||||
@ -233,11 +234,13 @@ public:
|
||||
if (!(remoteVariant &&
|
||||
ConvertToRemoteVariant(aArgs[index], *remoteVariant, aInstance,
|
||||
true))) {
|
||||
break;
|
||||
mOk = false;
|
||||
return;
|
||||
}
|
||||
}
|
||||
mOk = mArray.Length() == aCount;
|
||||
mOk = true;
|
||||
}
|
||||
|
||||
~ProtectedVariantArray()
|
||||
{
|
||||
PRUint32 count = mArray.Length();
|
||||
|
Loading…
Reference in New Issue
Block a user