From bad2ea0302c43c3fb3e6b16fac11f83415f1a467 Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Tue, 3 Apr 2012 20:17:34 +0000 Subject: [PATCH] 2012-04-03 22:17 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * harbour/contrib/xhb/hboutdbg.c * eliminated HB_TCHAR_*() macros --- harbour/ChangeLog | 4 ++++ harbour/contrib/xhb/hboutdbg.c | 7 +++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 1354858481..1034b29238 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2012-04-03 22:17 UTC+0200 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * harbour/contrib/xhb/hboutdbg.c + * eliminated HB_TCHAR_*() macros + 2012-04-03 11:26 UTC-0800 Pritpal Bedi (bedipritpal@hotmail.com) * contrib/hbxbp/tests/demoxbp.prg ! Fixed: visibility of sub-menu's was off and thus main menu was diff --git a/harbour/contrib/xhb/hboutdbg.c b/harbour/contrib/xhb/hboutdbg.c index c9234a8735..3c6a92fe8b 100644 --- a/harbour/contrib/xhb/hboutdbg.c +++ b/harbour/contrib/xhb/hboutdbg.c @@ -64,6 +64,7 @@ #if defined( HB_OS_WIN ) #include + #include "hbwinuni.h" #endif #if defined( HB_OS_UNIX ) && !defined( HB_OS_VXWORKS ) @@ -221,11 +222,9 @@ void hb_OutDebug( const char * szMsg, HB_SIZE nMsgLen ) #elif defined( HB_OS_WIN ) { - LPTSTR lpMsg = HB_TCHAR_CONVTO( szMsg ); + LPTSTR lpMsg = HB_CHARDUPN( szMsg, nMsgLen ); OutputDebugString( lpMsg ); - HB_TCHAR_FREE( lpMsg ); - - HB_SYMBOL_UNUSED( nMsgLen ); + hb_xfree( lpMsg ); } #else