Fix braindead variant conversion bug, r=cjones, no bug

This commit is contained in:
Ben Turner 2010-02-25 15:31:09 -08:00
parent 880f1e0c90
commit 7aae9fc552

View File

@ -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();