From 2854c0505361dc9b8c1a84d8d2a3fa708402671f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 18 Dec 2009 11:43:54 +0000 Subject: [PATCH] 2009-12-18 12:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/mapi.c ! Fixed typo in r13235 patch. This could have caused memory corruption and MAPI errors. ; Please retest. --- harbour/ChangeLog | 6 ++++++ harbour/contrib/hbwin/mapi.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 3c73753e52..047c177d52 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,12 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-12-18 12:43 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbwin/mapi.c + ! Fixed typo in r13235 patch. This could have caused memory + corruption and MAPI errors. + ; Please retest. + 2009-12-18 12:31 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * package/winuni/RELNOTES + Updated packages used by upcoming release. diff --git a/harbour/contrib/hbwin/mapi.c b/harbour/contrib/hbwin/mapi.c index a2d451a6ef..4df6fb9642 100644 --- a/harbour/contrib/hbwin/mapi.c +++ b/harbour/contrib/hbwin/mapi.c @@ -117,7 +117,7 @@ HB_FUNC( WIN_MAPISENDMAIL ) note.nRecipCount = 0; memset( note.lpRecips, 0, nRecpCount * sizeof( MapiRecipDesc ) ); - memset( note.lpRecips, 0, nFileCount * sizeof( MapiFileDesc ) ); + memset( note.lpFiles , 0, nFileCount * sizeof( MapiFileDesc ) ); if( hb_parl( 6 ) ) note.flFlags |= MAPI_RECEIPT_REQUESTED;