Fixing bustage...
git-svn-id: svn://10.0.0.236/trunk@110367 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
@@ -2864,8 +2864,8 @@ nsresult nsPluginInstanceOwner::EnsureCachedAttrParamArrays()
|
||||
}
|
||||
|
||||
// add our PARAM and null seperator
|
||||
mCachedAttrParamNames [mNumCachedAttrs + 1] = "PARAM";
|
||||
mCachedAttrParamValues[mNumCachedAttrs + 1] = nsnull;
|
||||
mCachedAttrParamNames [mNumCachedAttrs] = ToNewUTF8String(NS_LITERAL_STRING("PARAM"));
|
||||
mCachedAttrParamValues[mNumCachedAttrs] = nsnull;
|
||||
|
||||
// now fill in the PARAM name/value pairs from the cached DOM nodes
|
||||
c = 0;
|
||||
|
||||
@@ -2864,8 +2864,8 @@ nsresult nsPluginInstanceOwner::EnsureCachedAttrParamArrays()
|
||||
}
|
||||
|
||||
// add our PARAM and null seperator
|
||||
mCachedAttrParamNames [mNumCachedAttrs + 1] = "PARAM";
|
||||
mCachedAttrParamValues[mNumCachedAttrs + 1] = nsnull;
|
||||
mCachedAttrParamNames [mNumCachedAttrs] = ToNewUTF8String(NS_LITERAL_STRING("PARAM"));
|
||||
mCachedAttrParamValues[mNumCachedAttrs] = nsnull;
|
||||
|
||||
// now fill in the PARAM name/value pairs from the cached DOM nodes
|
||||
c = 0;
|
||||
|
||||
@@ -822,7 +822,7 @@ nsresult ns4xPluginInstance::InitializePlugin(nsIPluginInstancePeer* peer)
|
||||
const char* const* pnames = nsnull;
|
||||
const char* const* pvalues = nsnull;
|
||||
if (NS_SUCCEEDED(taginfo->GetParameters(pcount, pnames, pvalues))) {
|
||||
NS_ASSERTION(nsnull == values[count+1], "attribute/parameter array not setup correctly for 4.x plugins");
|
||||
NS_ASSERTION(nsnull == values[count], "attribute/parameter array not setup correctly for 4.x plugins");
|
||||
count += ++pcount; //if it's all setup correctly, then all we need is to change the count
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user