printf("failed to migrate properly.  err=%d\n",rv); return;
printf("failed to migrate properly.  err=%d\n",rv);
extern "C" void ProfileMigrationController(void *data){  if (!data) return;  nsPrefMigration* migrator = (nsPrefMigration*)data;  nsIPrefMigration* interfaceM = (nsIPrefMigration*)data;  PRInt32 index = 0;  PRInt32 choice = 0;  nsresult rv = NS_OK;  nsCOMPtr<nsIPrefMigration> prefProxy;  do {        choice = 0;    migrator->mErrorCode = 0;    MigrateProfileItem* item = (MigrateProfileItem*)migrator->mProfilesToMigrate.ElementAt(index);    if (item)    {        rv = migrator->ProcessPrefsCallback(item->oldFile, item->newFile);        if (NS_FAILED(rv))        {          migrator->mErrorCode = rv;	        printf("failed to migrate properly.  err=%d\n",rv);          return;        }    }    else    {      migrator->mErrorCode = NS_ERROR_FAILURE;      return;    }    NS_WITH_SERVICE(nsIProxyObjectManager, pIProxyObjectManager, kProxyObjectManagerCID, &rv);    if(NS_FAILED(rv))    {      migrator->mErrorCode = rv;      return;    }      nsCOMPtr<nsIPrefMigration> migratorInterface = do_QueryInterface(interfaceM, &rv);    if (NS_FAILED(rv))    {      migrator->mErrorCode = rv;      return;    }    if (!prefProxy)    {        rv = pIProxyObjectManager->GetProxyForObject(NS_UI_THREAD_EVENTQ,                                                    NS_GET_IID(nsIPrefMigration),                                                    migratorInterface,                                                    PROXY_SYNC,                                                   getter_AddRefs(prefProxy));        if (NS_FAILED(rv))        {          migrator->mErrorCode = rv;          return;        }    }    if (migrator->mErrorCode != 0)    {      if (migrator->mErrorCode == RETRY)      {        rv = prefProxy->ShowSpaceDialog(&choice);        if (NS_FAILED(rv))        {          migrator->mErrorCode = rv;          return;        }        choice++;// Increment choice to match the RETRY=1, CREATE_NEW=2 and CANCEL=3 format      }    }  } while (choice == RETRY);  prefProxy->WindowCloseCallback();  migrator->mErrorCode = choice;}