match buffered i/o registry change in XP_MAC section

git-svn-id: svn://10.0.0.236/trunk@47942 18797224-902f-48f8-a5cc-f745e15eee43
This commit is contained in:
dveditz%netscape.com
1999-09-17 07:00:55 +00:00
parent 8fd641afd7
commit e0efc09bf1
3 changed files with 3 additions and 15 deletions

View File

@@ -470,11 +470,7 @@ NS_IMETHODIMP nsRegistry::OpenWellKnownRegistry( uint32 regid ) {
return NS_ERROR_REG_BADTYPE;
}
// WARNING:
// regNSPRPath and regFile need to have the same scope
// since the regFile will point to data in regNSPRPath
nsNSPRPath regNSPRPath(*registryLocation);
const char *regFile = (const char *) regNSPRPath;
const char *regFile = registryLocation->GetNativePathCString();
#ifdef DEBUG_dp
printf("nsRegistry: Opening std registry %s\n", regFile);

View File

@@ -2010,11 +2010,7 @@ NS_IMETHODIMP nsProfile::MigrateProfileInfo()
*regLocation += "Preferences";
*regLocation += oldMacReg;
// WARNING
// regNSPRPath and regFile need to have the same scope
// since the regFile will point to data in regNSPRPath
nsNSPRPath regNSPRPath(*regLocation);
PL_strcpy(oldRegFile, (const char *) regNSPRPath);
PL_strcpy(oldRegFile, regLocation->GetNativePathCString());
#endif
rv = m_reg->Open(oldRegFile);

View File

@@ -470,11 +470,7 @@ NS_IMETHODIMP nsRegistry::OpenWellKnownRegistry( uint32 regid ) {
return NS_ERROR_REG_BADTYPE;
}
// WARNING:
// regNSPRPath and regFile need to have the same scope
// since the regFile will point to data in regNSPRPath
nsNSPRPath regNSPRPath(*registryLocation);
const char *regFile = (const char *) regNSPRPath;
const char *regFile = registryLocation->GetNativePathCString();
#ifdef DEBUG_dp
printf("nsRegistry: Opening std registry %s\n", regFile);