зеркало из https://github.com/mozilla/pjs.git
Fix HackToGetBody() to works on Mac and Unix as well
This commit is contained in:
Родитель
d4dc4486be
Коммит
74f97a4e51
|
@ -398,7 +398,18 @@ nsComposeAppCore::HackToGetBody(PRInt32 what)
|
||||||
char *buffer = (char *) PR_CALLOC(1024);
|
char *buffer = (char *) PR_CALLOC(1024);
|
||||||
if (buffer)
|
if (buffer)
|
||||||
{
|
{
|
||||||
nsFileSpec fileSpec("c:\\temp\\tempMessage.eml");
|
#ifdef XP_UNIX
|
||||||
|
#define MESSAGE_PATH "/usr/tmp/tempMessage.eml"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XP_PC
|
||||||
|
#define MESSAGE_PATH "c:\\temp\\tempMessage.eml"
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifdef XP_MAC
|
||||||
|
#define MESSAGE_PATH "tempMessage.eml"
|
||||||
|
#endif
|
||||||
|
nsFileSpec fileSpec(MESSAGE_PATH);
|
||||||
nsInputFileStream fileStream(fileSpec);
|
nsInputFileStream fileStream(fileSpec);
|
||||||
nsString msgBody = what == 2 ? "--------Original Message--------\r\n"
|
nsString msgBody = what == 2 ? "--------Original Message--------\r\n"
|
||||||
: "";
|
: "";
|
||||||
|
|
Загрузка…
Ссылка в новой задаче