NS_ENSURE_ARG_POINTER(oldProfile); NS_ENSURE_ARG_POINTER(newProfile);
nsIEnumerator	 *enumKeys; nsIRegistry::Key sourceKey, destKey, profileRootKey;  nsresult rv = m_reg->OpenDefault();
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;}