*result = resultStr.ToNewUnicode();
*result = ToNewUnicode(resultStr);
nsresult NS_MsgDecodeUnescapeURLPath(const char *path, PRUnichar **result){  NS_ENSURE_ARG_POINTER(path);  NS_ENSURE_ARG_POINTER(result);  char *unescapedName = nsCRT::strdup(path);  if (!unescapedName) return NS_ERROR_OUT_OF_MEMORY;  nsUnescape(unescapedName);  nsAutoString resultStr;  resultStr = NS_ConvertUTF8toUCS2(unescapedName);  *result = resultStr.ToNewUnicode();  if (!*result) return NS_ERROR_OUT_OF_MEMORY;  return NS_OK;}