diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 8da6bbbea6..da6da61c4b 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,18 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-12-13 17:29 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbwin/mapi.c + ! Added back zeroing rcp/file structure list. + + * INSTALL + * Minor. + + * contrib/gtwvg/wvgutils.c + * contrib/hbwin/win_misc.c + * contrib/hbwin/mapi.c + * ZeroMemory() -> memset() + 2009-12-13 14:46 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/hbwin/mapi.c + Added support for unlimited number of recipients and diff --git a/harbour/INSTALL b/harbour/INSTALL index 76945d5fe1..154804e8e3 100644 --- a/harbour/INSTALL +++ b/harbour/INSTALL @@ -361,7 +361,7 @@ HARBOUR Linux (Debian, Ubuntu, .deb based distros) ------------------------------------------ - (tested with Ubuntu 7.04, 8.04, 9.04) + (tested with Ubuntu 7.04, 8.04, 9.04, 9.10) for zlib support: $ sudo apt-get install zlib1g-dev for pcre (regex) support: $ sudo apt-get install libpcre3-dev @@ -1139,7 +1139,7 @@ HARBOUR linux -> linux/clang (CPU cross-builds possible) linux -> linux/icc (CPU cross-builds possible: x86, x86-64, ia64) linux -> linux/sunpro (CPU cross-builds possible: x86, x86-64) - linux -> linux/open64 x86-64 (CPU cross-builds possible: ia64, ...) + linux -> linux/open64 (CPU cross-builds possible: x86-64, ia64, ...) x linux -> wce/mingwarm arm x linux -> wce/mingw x86 x linux -> win/mingw x86 diff --git a/harbour/contrib/gtwvg/wvgutils.c b/harbour/contrib/gtwvg/wvgutils.c index 0691eacabb..59c51b237f 100644 --- a/harbour/contrib/gtwvg/wvgutils.c +++ b/harbour/contrib/gtwvg/wvgutils.c @@ -1501,7 +1501,7 @@ HB_FUNC( WVT__GETOPENFILENAME ) lpstrInitialDir = HB_PARTSTR( 6 ); lpstrDefExt = HB_PARTSTR( 7 ); - ZeroMemory( &ofn, sizeof( ofn ) ); + memset( &ofn, 0, sizeof( ofn ) ); ofn.hInstance = GetModuleHandle( NULL ) ; ofn.lStructSize = sizeof( ofn ); @@ -1548,7 +1548,7 @@ HB_FUNC( WVT__GETSAVEFILENAME ) lpstrInitialDir = HB_PARTSTR( 6 ); lpstrDefExt = HB_PARTSTR( 7 ); - ZeroMemory( &ofn, sizeof( ofn ) ); + memset( &ofn, 0, sizeof( ofn ) ); ofn.hInstance = GetModuleHandle( NULL ); ofn.lStructSize = sizeof( ofn ); diff --git a/harbour/contrib/hbwin/mapi.c b/harbour/contrib/hbwin/mapi.c index cecb079f1e..067e0827ac 100644 --- a/harbour/contrib/hbwin/mapi.c +++ b/harbour/contrib/hbwin/mapi.c @@ -90,8 +90,8 @@ HB_FUNC( WIN_MAPISENDMAIL ) MapiRecipDesc origin; FLAGS flags; - ZeroMemory( ¬e, sizeof( MapiMessage ) ); - ZeroMemory( &origin, sizeof( MapiRecipDesc ) ); + memset( ¬e, 0, sizeof( MapiMessage ) ); + memset( &origin, 0, sizeof( MapiRecipDesc ) ); hString = ( void ** ) hb_xgrab( ( 4 + 2 + ( 2 * nRecpCount ) + ( 2 * nFileCount ) ) * sizeof( void * ) ); @@ -104,6 +104,9 @@ HB_FUNC( WIN_MAPISENDMAIL ) note.nFileCount = 0; note.nRecipCount = 0; + memset( note.lpRecips, 0, nRecpCount * sizeof( MapiRecipDesc ) ); + memset( note.lpRecips, 0, nFileCount * sizeof( MapiFileDesc ) ); + if( hb_parl( 6 ) ) note.flFlags |= MAPI_RECEIPT_REQUESTED; diff --git a/harbour/contrib/hbwin/win_misc.c b/harbour/contrib/hbwin/win_misc.c index 5b1a30d1dd..0452f6a528 100644 --- a/harbour/contrib/hbwin/win_misc.c +++ b/harbour/contrib/hbwin/win_misc.c @@ -82,9 +82,9 @@ HB_FUNC( WIN_RUNDETACHED ) STARTUPINFO si; PROCESS_INFORMATION pi; - ZeroMemory( &si, sizeof( si ) ); + memset( &si, 0, sizeof( si ) ); si.cb = sizeof( si ); - ZeroMemory( &pi, sizeof( pi ) ); + memset( &pi, 0, sizeof( pi ) ); #endif if( CreateProcess(