From d712b11f1a8ed3454afa14a7cb67d136278bd8c2 Mon Sep 17 00:00:00 2001 From: "putterman%netscape.com" Date: Fri, 2 Apr 1999 03:13:25 +0000 Subject: [PATCH] This should work on all platforms now. --- mailnews/base/util/nsMsgFolder.cpp | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/mailnews/base/util/nsMsgFolder.cpp b/mailnews/base/util/nsMsgFolder.cpp index c9da2dcac229..efb0faed5719 100644 --- a/mailnews/base/util/nsMsgFolder.cpp +++ b/mailnews/base/util/nsMsgFolder.cpp @@ -1461,11 +1461,10 @@ nsURI2Path(const char* rootURI, const char* uriStr, nsFileSpec& pathResult) if (uri.Find(rootURI) != 0) // if doesn't start with rootURI return NS_ERROR_FAILURE; - nsFileSpec root; - rv = nsGetMailboxRoot(root); + rv = nsGetMailboxRoot(pathResult); if (NS_FAILED(rv)) return rv; - nsAutoString path((root)); + nsAutoString path=""; uri.Cut(0, nsCRT::strlen(rootURI)); PRInt32 uriLen = uri.Length(); @@ -1502,7 +1501,9 @@ nsURI2Path(const char* rootURI, const char* uriStr, nsFileSpec& pathResult) uri.Cut(0, pos); uriLen -= pos; } - pathResult = path; + + if(path.Length() > 0) + pathResult +=path; return NS_OK; }