summaryrefslogtreecommitdiff
path: root/shell/source
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
commit3f9116d1fd1095b35ca3099eba0d06807f4721bc (patch)
tree62db55a7e00233ea5a432a5f6cfb3340e603c9f7 /shell/source
parente2cfe20f42c94c784531446ebeddc0d720e277d8 (diff)
parent59f2c443bfa88265280b8353099b79a305da2afb (diff)
rebase to m91
Diffstat (limited to 'shell/source')
-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 42f5b9e244..b904902ee4 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();