if (NS_FAILED(res)) { return retval; }
Wallet_Confirm(char * szMessage){#ifdef NECKO  PRBool retval = PR_TRUE; /* default value */  nsresult res;    NS_WITH_SERVICE(nsIPrompt, dialog, kNetSupportDialogCID, &res);  if (NS_FAILED(res)) {    return retval;  }  const nsString message = szMessage;  retval = PR_FALSE; /* in case user exits dialog by clicking X */  res = dialog->Confirm(message.GetUnicode(), &retval);  if (NS_FAILED(res)) {    return retval;  }  return retval;#else  PRBool retval = PR_TRUE; /* default value */  nsINetSupportDialogService* dialog = NULL;  nsresult res = nsServiceManager::GetService(kNetSupportDialogCID,  nsINetSupportDialogService::GetIID(), (nsISupports**)&dialog);  if (NS_FAILED(res)) {    return retval;  }  if (dialog) {    const nsString message = szMessage;    retval = PR_FALSE; /* in case user exits dialog by clicking X */    dialog->Confirm(message, &retval);  }  nsServiceManager::ReleaseService(kNetSupportDialogCID, dialog);  return retval;#endif}