summaryrefslogtreecommitdiff
path: root/shell/source/win32/simplemail/senddoc.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'shell/source/win32/simplemail/senddoc.cxx')
-rw-r--r--shell/source/win32/simplemail/senddoc.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/shell/source/win32/simplemail/senddoc.cxx b/shell/source/win32/simplemail/senddoc.cxx
index a7a87fdb2a25..3b57684fe821 100644
--- a/shell/source/win32/simplemail/senddoc.cxx
+++ b/shell/source/win32/simplemail/senddoc.cxx
@@ -162,10 +162,10 @@ static void initMapiMessage(
pMapiMessage->lpszSubject = const_cast<wchar_t*>(gSubject.c_str());
pMapiMessage->lpszNoteText = (gBody.length() ? const_cast<wchar_t*>(gBody.c_str()) : nullptr);
pMapiMessage->lpOriginator = aMapiOriginator;
- pMapiMessage->lpRecips = aMapiRecipientList.size() ? &aMapiRecipientList[0] : nullptr;
+ pMapiMessage->lpRecips = aMapiRecipientList.size() ? aMapiRecipientList.data() : nullptr;
pMapiMessage->nRecipCount = aMapiRecipientList.size();
if (!aMapiAttachmentList.empty())
- pMapiMessage->lpFiles = &aMapiAttachmentList[0];
+ pMapiMessage->lpFiles = aMapiAttachmentList.data();
pMapiMessage->nFileCount = aMapiAttachmentList.size();
}