Fixing bustage...

git-svn-id: svn://10.0.0.236/trunk@110367 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
peterlubczynski%netscape.com
2001-12-12 05:39:46 +00:00
parent 4c65dd8f62
commit 2cacb5e700
3 changed files with 5 additions and 5 deletions

View File

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

View File

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

View File

@@ -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
}
}