diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 920606c957..49d66bf1db 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-04-23 00:19 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * contrib/hbwin/win_evnt.c + ! Fixed C++ casting errors. + 2010-04-22 19:40 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * external/minizip/ioapi.h ! Added darwin-specific workaround to disable 64-bit diff --git a/harbour/contrib/hbwin/win_evnt.c b/harbour/contrib/hbwin/win_evnt.c index 210d5a9658..439d10c3eb 100644 --- a/harbour/contrib/hbwin/win_evnt.c +++ b/harbour/contrib/hbwin/win_evnt.c @@ -81,8 +81,8 @@ HB_FUNC( WIN_REPORTEVENT ) { WORD i; - lpStrings = hb_xgrab( sizeof( LPCTSTR ) * wNumStrings ); - hStrings = hb_xgrab( sizeof( void * ) * wNumStrings ); + lpStrings = ( LPCTSTR * ) hb_xgrab( sizeof( LPCTSTR ) * wNumStrings ); + hStrings = ( void ** ) hb_xgrab( sizeof( void * ) * wNumStrings ); for( i = 0; i < wNumStrings; ++i ) lpStrings[ i ] = ( LPCTSTR ) HB_ARRAYGETSTR( pStrings, i + 1, &hStrings[ i ], NULL ); @@ -91,8 +91,8 @@ HB_FUNC( WIN_REPORTEVENT ) { wNumStrings = 1; - lpStrings = hb_xgrab( sizeof( LPCTSTR ) ); - hStrings = hb_xgrab( sizeof( void * ) ); + lpStrings = ( LPCTSTR * ) hb_xgrab( sizeof( LPCTSTR ) ); + hStrings = ( void ** ) hb_xgrab( sizeof( void * ) ); lpStrings[ 0 ] = ( LPCTSTR ) HB_ITEMGETSTR( hb_param( 6, HB_IT_STRING ), &hStrings[ 0 ], NULL ); }