From 036644d8be8595f71c7384dfbffcb2e77a901122 Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Wed, 16 Dec 2009 00:54:21 +0000 Subject: [PATCH] 2009-12-16 01:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) * contrib/rddsql/sddmy/mysqldd.c ! Fixed warning reported by linux/watcom. * src/rtl/gtwin/gtwin.c * Minor formatting. --- harbour/ChangeLog | 7 +++++++ harbour/contrib/rddsql/sddmy/mysqldd.c | 6 +++--- harbour/src/rtl/gtwin/gtwin.c | 1 - 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index cba09a3d1b..e1a710b790 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2009-12-16 01:53 UTC+0100 Viktor Szakats (harbour.01 syenar.hu) + * contrib/rddsql/sddmy/mysqldd.c + ! Fixed warning reported by linux/watcom. + + * src/rtl/gtwin/gtwin.c + * Minor formatting. + 2009-12-16 01:26 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/contrib/hbwin/mapi.c ! fixed compilation with OpenWatcom diff --git a/harbour/contrib/rddsql/sddmy/mysqldd.c b/harbour/contrib/rddsql/sddmy/mysqldd.c index b486416695..abd89d4f48 100644 --- a/harbour/contrib/rddsql/sddmy/mysqldd.c +++ b/harbour/contrib/rddsql/sddmy/mysqldd.c @@ -101,8 +101,8 @@ static void hb_mysqldd_init( void * cargo ) { HB_SYMBOL_UNUSED( cargo ); - if ( ! hb_sddRegister( & mysqldd ) || - ( sizeof( MYSQL_ROW_OFFSET ) != sizeof( void * ) ) || + if ( ! hb_sddRegister( & mysqldd ) || + ( sizeof( MYSQL_ROW_OFFSET ) != sizeof( void * ) ) || ( sizeof( MYSQL_ROW ) != sizeof( void * ) ) ) { hb_errInternal( HB_EI_RDDINVALID, NULL, NULL, NULL ); @@ -429,7 +429,7 @@ static HB_ERRCODE mysqlClose( SQLBASEAREAP pArea ) static HB_ERRCODE mysqlGoTo( SQLBASEAREAP pArea, ULONG ulRecNo ) { - if ( ulRecNo <= 0 || ulRecNo > pArea->ulRecCount ) + if ( ulRecNo == 0 || ulRecNo > pArea->ulRecCount ) { pArea->pRecord = pArea->pRow[ 0 ]; pArea->bRecordFlags = pArea->pRowFlags[ 0 ]; diff --git a/harbour/src/rtl/gtwin/gtwin.c b/harbour/src/rtl/gtwin/gtwin.c index 3fffea5753..58b730bf66 100644 --- a/harbour/src/rtl/gtwin/gtwin.c +++ b/harbour/src/rtl/gtwin/gtwin.c @@ -1529,7 +1529,6 @@ static BOOL hb_gt_win_SetDispCP( PHB_GT pGT, const char *pszTermCDP, const char static BOOL hb_gt_win_SetKeyCP( PHB_GT pGT, const char *pszTermCDP, const char *pszHostCDP ) { - HB_TRACE(HB_TR_DEBUG, ("hb_gt_win_SetKeyCP(%p,%s,%s)", pGT, pszTermCDP, pszHostCDP)); HB_GTSUPER_SETKEYCP( pGT, pszTermCDP, pszHostCDP );