From 6e527f2ed1c20c07e23761c874d840a802ea196e Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 5 Jan 2010 01:39:48 +0000 Subject: [PATCH] 2010-01-05 02:39 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/common/hbtrace.c ! fixed casting for C++ mode in my recent modification --- harbour/ChangeLog | 4 ++++ harbour/src/common/hbtrace.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 8197a42cd8..45fdd95918 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,10 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-01-05 02:39 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/src/common/hbtrace.c + ! fixed casting for C++ mode in my recent modification + 2010-01-04 16:28 UTC-0800 Pritpal Bedi (pritpal@vouchcac.com) * contrib/hbide/hbide.prg * contrib/hbide/ideactions.prg diff --git a/harbour/src/common/hbtrace.c b/harbour/src/common/hbtrace.c index e62e2d19c3..ab6c98b35e 100644 --- a/harbour/src/common/hbtrace.c +++ b/harbour/src/common/hbtrace.c @@ -246,7 +246,7 @@ static void hb_tracelog_( int level, const char * file, int line, const char * p file, line, pszLevel, message ); #if defined( UNICODE ) - MultiByteToWideChar( CP_ACP, 0, memcpy( message, buf.psz, sizeof( message ) ), -1, + MultiByteToWideChar( CP_ACP, 0, ( LPCSTR ) memcpy( message, buf.psz, sizeof( message ) ), -1, buf.lp, HB_SIZEOFARRAY( buf.lp ) ); #endif OutputDebugString( buf.lp );