Fixing bug 46320. Reducing the number of global files by moving profile registry to product sub-directory under HOME. r=dougt

This commit is contained in:
racham@netscape.com
2000-08-16 22:40:27 +00:00
parent ac9fafcaaf
commit 5555d0ee78
11 changed files with 340 additions and 107 deletions

View File

@@ -220,7 +220,7 @@ nsNativeComponentLoader::Init(nsIComponentManager *aCompMgr, nsISupports *aReg)
// Get key associated with library
nsRegistryKey libKey;
rv = node->GetKey(&libKey);
if (!NS_FAILED(rv)) // Cannot continue here, because we have to free unescape
if (NS_SUCCEEDED(rv)) // Cannot continue here, because we have to free unescape
{
// Create nsDll with this name
nsDll *dll = NULL;
@@ -229,8 +229,7 @@ nsNativeComponentLoader::Init(nsIComponentManager *aCompMgr, nsISupports *aReg)
GetRegistryDllInfo(libKey, &lastModTime, &fileSize);
rv = CreateDll(NULL, uLibrary, &lastModTime, &fileSize, &dll);
}
if (uLibrary != eLibrary
&& uLibrary != nsnull)
if (uLibrary && (uLibrary != eLibrary))
nsMemory::Free(uLibrary);
if (NS_FAILED(rv)) continue;