зеркало из https://github.com/mozilla/pjs.git
Fix runtime breakage caused by changing nsFilePath to nsFileSpec.
This commit is contained in:
Родитель
c391f0853e
Коммит
14c63cadac
|
@ -55,8 +55,8 @@ nsresult nsMailboxService::ParseMailbox(const nsFileSpec& aMailboxPath, nsIStrea
|
||||||
if (NS_SUCCEEDED(rv) && url)
|
if (NS_SUCCEEDED(rv) && url)
|
||||||
{
|
{
|
||||||
// okay now generate the url string
|
// okay now generate the url string
|
||||||
nsFilePath path(aMailboxPath);
|
nsFilePath filePath(aMailboxPath); // convert to file url representation...
|
||||||
char * urlSpec = PR_smprintf("mailbox://%s", (const char *) path);
|
char * urlSpec = PR_smprintf("mailbox://%s", (const char *) filePath);
|
||||||
url->SetSpec(urlSpec);
|
url->SetSpec(urlSpec);
|
||||||
PR_FREEIF(urlSpec);
|
PR_FREEIF(urlSpec);
|
||||||
url->SetMailboxParser(aMailboxParser);
|
url->SetMailboxParser(aMailboxParser);
|
||||||
|
@ -95,10 +95,11 @@ nsresult nsMailboxService::DisplayMessage(const nsFileSpec& aMailboxPath, nsMsgK
|
||||||
{
|
{
|
||||||
// okay now generate the url string
|
// okay now generate the url string
|
||||||
char * urlSpec = nsnull;
|
char * urlSpec = nsnull;
|
||||||
|
nsFilePath filePath(aMailboxPath); // convert to file url representation...
|
||||||
if (aMessageID)
|
if (aMessageID)
|
||||||
urlSpec = PR_smprintf("mailboxMessage://%s?messageId=%s&number=%d", (const char *) aMailboxPath, aMessageKey);
|
urlSpec = PR_smprintf("mailboxMessage://%s?messageId=%s&number=%d", (const char *) filePath, aMessageKey);
|
||||||
else
|
else
|
||||||
urlSpec = PR_smprintf("mailboxMessage://%s?number=%d", (const char *) aMailboxPath, aMessageKey);
|
urlSpec = PR_smprintf("mailboxMessage://%s?number=%d", (const char *) filePath, aMessageKey);
|
||||||
|
|
||||||
url->SetSpec(urlSpec);
|
url->SetSpec(urlSpec);
|
||||||
PR_FREEIF(urlSpec);
|
PR_FREEIF(urlSpec);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче