rv = gProfileDataAccess->SetValue(aProfile);
if (NS_SUCCEEDED(rv)) { rv = m_reg->EnumerateValues(sourceKey, getter_AddRefs(enumKeys));
nsresult nsProfile::CopyRegKey(const PRUnichar *oldProfile, const PRUnichar *newProfile){    NS_ENSURE_ARG_POINTER(oldProfile);       NS_ENSURE_ARG_POINTER(newProfile);       nsresult rv = NS_OK;    ProfileStruct    *aProfile;    rv = gProfileDataAccess->GetValue(oldProfile, &aProfile);    if (NS_FAILED(rv)) return rv;    aProfile->profileName        = newProfile;    rv = gProfileDataAccess->SetValue(aProfile);	delete aProfile;    return rv;}