summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authoros <os@openoffice.org>2010-11-01 10:25:54 +0100
committeros <os@openoffice.org>2010-11-01 10:25:54 +0100
commitffdb53619f62b25aebfa3d699f6f4771fb6cae9f (patch)
tree9864c6ce746b8ede6dc1fc966079a2a51a50e614 /shell
parentCWS changehid: resync to m90 (diff)
parentm89 merged (diff)
downloadcore-ffdb53619f62b25aebfa3d699f6f4771fb6cae9f.tar.gz
core-ffdb53619f62b25aebfa3d699f6f4771fb6cae9f.zip
rebase to m91
Diffstat (limited to 'shell')
-rw-r--r--shell/source/win32/simplemail/senddoc.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/shell/source/win32/simplemail/senddoc.cxx b/shell/source/win32/simplemail/senddoc.cxx
index c8ac40799cea..bb743960afc5 100644
--- a/shell/source/win32/simplemail/senddoc.cxx
+++ b/shell/source/win32/simplemail/senddoc.cxx
@@ -170,7 +170,7 @@ void initMapiMessage(
pMapiMessage->lpszSubject = const_cast<char*>(gSubject.c_str());
pMapiMessage->lpszNoteText = (gBody.length() ? const_cast<char*>(gBody.c_str()) : NULL);
pMapiMessage->lpOriginator = aMapiOriginator;
- pMapiMessage->lpRecips = &aMapiRecipientList[0];
+ pMapiMessage->lpRecips = aMapiRecipientList.size() ? &aMapiRecipientList[0] : 0;
pMapiMessage->nRecipCount = aMapiRecipientList.size();
pMapiMessage->lpFiles = &aMapiAttachmentList[0];
pMapiMessage->nFileCount = aMapiAttachmentList.size();