Lei Zhang : mapi32: Initialize several string buffers.
Alexandre Julliard
julliard at winehq.org
Thu Jan 10 06:42:01 CST 2008
Module: wine
Branch: master
Commit: c565a8382a659bcd0c29243e1de7d2d02f97b4a5
URL: http://source.winehq.org/git/wine.git/?a=commit;h=c565a8382a659bcd0c29243e1de7d2d02f97b4a5
Author: Lei Zhang <thestig at google.com>
Date: Wed Jan 9 11:53:20 2008 -0800
mapi32: Initialize several string buffers.
---
dlls/mapi32/sendmail.c | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/dlls/mapi32/sendmail.c b/dlls/mapi32/sendmail.c
index eb954a5..6968f7d 100644
--- a/dlls/mapi32/sendmail.c
+++ b/dlls/mapi32/sendmail.c
@@ -127,16 +127,19 @@ ULONG WINAPI MAPISendMail( LHANDLE session, ULONG_PTR uiparam,
{
to = HeapAlloc( GetProcessHeap(), 0, to_size );
if (!to) goto exit;
+ to[0] = 0;
}
if (cc_size)
{
cc = HeapAlloc( GetProcessHeap(), 0, cc_size );
if (!cc) goto exit;
+ cc[0] = 0;
}
if (bcc_size)
{
bcc = HeapAlloc( GetProcessHeap(), 0, bcc_size );
if (!bcc) goto exit;
+ bcc[0] = 0;
}
if (message->lpOriginator)
More information about the wine-cvs
mailing list