return aStatus;
return rv;
nsStringBundle::OnStreamComplete(nsIStreamLoader* aLoader,                                 nsISupports* context,                                 nsresult aStatus,                                 PRUint32 stringLen,                                 const char* string){#if defined(DEBUG_tao)  printf("\n --> nsStringBundle::OnStreamComplete, aStatus=%d, stringLen=%ld\n", aStatus, stringLen);#endif  // print a load error on bad status  nsXPIDLCString uriSpec;  if (NS_FAILED(aStatus)) {    if (aLoader) {      nsCOMPtr<nsIRequest> request;      aLoader->GetRequest(getter_AddRefs(request));      nsCOMPtr<nsIChannel> channel(do_QueryInterface(request));      if (channel) {        nsCOMPtr<nsIURI> uri;        channel->GetURI(getter_AddRefs(uri));        if (uri) {            uri->GetSpec(getter_Copies(uriSpec));#if defined(DEBUG)            printf("\n -->nsStringBundle::OnStreamComplete: Failed to load %s\n",                    uriSpec ? (const char *) uriSpec : "");#endif        }      }    }    return aStatus;  }  nsresult rv;  nsCOMPtr<nsISupports> stringStreamSupports;  rv = NS_NewByteInputStream(getter_AddRefs(stringStreamSupports),                              string, stringLen);  if (NS_FAILED(rv)) return rv;        nsCOMPtr<nsIInputStream> in = do_QueryInterface(stringStreamSupports, &rv);  if (NS_FAILED(rv)) return rv;    aStatus = nsComponentManager::CreateInstance(kPersistentPropertiesCID, NULL,                                               NS_GET_IID(nsIPersistentProperties),                                                (void**) &mProps);  if (NS_FAILED(aStatus)) {#ifdef NS_DEBUG    printf("create nsIPersistentProperties failed\n");#endif    return aStatus;  }  // load the stream  aStatus = mProps->Load(in);    //   // notify  if (NS_SUCCEEDED(aStatus)) {    mLoaded = PR_TRUE;    // callback    if (_callback) {      _callback(this, uriSpec, _closure);    }        // observer notification    nsCOMPtr<nsIObserverService> os = do_GetService(NS_OBSERVERSERVICE_CONTRACTID);    if (os)      os->Notify((nsIStringBundle *) this,                  NS_STRBUNDLE_LOADED_TOPIC, nsnull);#if defined(DEBUG_tao)  printf("\n --> nsStringBundle::OnStreamComplete: end sending NOTIFICATIONS!!\n");#endif  }  return aStatus;}