hack to fix pravda bustage

This commit is contained in:
scc@mozilla.org
2000-09-03 00:25:42 +00:00
parent 7f1b7e7eca
commit 79c16415e2
2 changed files with 10 additions and 2 deletions

View File

@@ -2952,7 +2952,11 @@ LoadXPCOMPlugin(nsIComponentManager* aComponentManager,
// plugin's CID, and then navigate through the XPCOM registry to
// pull out the DLL name to which the CID is registered.
nsAutoString path;
path = NS_LITERAL_STRING("software/mozilla/XPCOM/classID/") + NS_ConvertASCIItoUCS2(aCID);
NS_NAMED_LITERAL_STRING(literal, "software/mozilla/XPCOM/classID/");
nsAReadableString& readable = literal;
path = readable + NS_ConvertASCIItoUCS2(aCID);
// this contortion to append is a hack until I can figure out why the right |operator+| is not found
// on some platforms
nsRegistryKey cidKey;
rv = aRegistry->GetKey(nsIRegistry::Common, path.GetUnicode(), &cidKey);