зеркало из https://github.com/mozilla/pjs.git
closing the file used by the registry service is evil
This commit is contained in:
Родитель
044e8f5923
Коммит
5032bc6144
|
@ -99,10 +99,6 @@ nsProfileAccess::~nsProfileAccess()
|
|||
|
||||
PRBool openalready = PR_FALSE;
|
||||
|
||||
m_registry->IsOpen( &openalready);
|
||||
if (openalready)
|
||||
m_registry->Close();
|
||||
|
||||
// Release all resources.
|
||||
CRTFREEIF(mCurrentProfile);
|
||||
CRTFREEIF(mVersion);
|
||||
|
@ -135,7 +131,7 @@ nsProfileAccess::CloseRegistry()
|
|||
{
|
||||
nsresult rv = NS_OK;
|
||||
|
||||
rv = m_registry->Close();
|
||||
// rv = m_registry->Close();
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
@ -163,7 +159,7 @@ nsProfileAccess::OpenRegistry()
|
|||
if (NS_FAILED(rv)) return rv;
|
||||
|
||||
if (!openalready)
|
||||
rv = m_registry->OpenDefault();
|
||||
rv = m_registry->OpenWellKnownRegistry(nsIRegistry::ApplicationRegistry);
|
||||
|
||||
return rv;
|
||||
}
|
||||
|
@ -911,7 +907,6 @@ nsProfileAccess::Get4xProfileInfo(const char *registryName)
|
|||
rv = enumKeys->Next();
|
||||
if (NS_FAILED(rv)) return rv;
|
||||
}
|
||||
oldReg->Close();
|
||||
|
||||
#elif defined (XP_BEOS)
|
||||
#else
|
||||
|
|
Загрузка…
Ссылка в новой задаче