Fixing bustage...

This commit is contained in:
peterlubczynski%netscape.com 2001-12-12 05:39:46 +00:00
parent e3f452219e
commit 4429083363
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
}
}