From 369c110efefe7bc74c71f0779651d25802168a0f Mon Sep 17 00:00:00 2001 From: Viktor Szakats Date: Fri, 16 Apr 2010 09:27:32 +0000 Subject: [PATCH] 2010-04-16 11:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) * src/rtl/gtclip.c + Added parenthesis. * contrib/hbmisc/hbeditc.c ! Pacified uninit variable MSVC warning. --- harbour/ChangeLog | 7 +++++++ harbour/contrib/hbmisc/hbeditc.c | 1 + harbour/src/rtl/gtclip.c | 2 +- 3 files changed, 9 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 60c20b07c5..9c06a782f7 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -17,6 +17,13 @@ past entries belonging to author(s): Viktor Szakats. */ +2010-04-16 11:27 UTC+0200 Viktor Szakats (harbour.01 syenar.hu) + * src/rtl/gtclip.c + + Added parenthesis. + + * contrib/hbmisc/hbeditc.c + ! Pacified uninit variable MSVC warning. + 2010-04-15 08:16 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/src/rtl/gtos2/gtos2.c * small cleanup in TONE code diff --git a/harbour/contrib/hbmisc/hbeditc.c b/harbour/contrib/hbmisc/hbeditc.c index 9ed6368563..ad951db275 100644 --- a/harbour/contrib/hbmisc/hbeditc.c +++ b/harbour/contrib/hbmisc/hbeditc.c @@ -942,6 +942,7 @@ HB_FUNC( ED_STABILIZE ) * ^-first visible column */ e = 0; + i = 0; if( pEd->escape ) { for( i = 0; i < ( pEd->first_col + e ); i++ ) diff --git a/harbour/src/rtl/gtclip.c b/harbour/src/rtl/gtclip.c index df415b054f..af7e8cfbbd 100644 --- a/harbour/src/rtl/gtclip.c +++ b/harbour/src/rtl/gtclip.c @@ -127,7 +127,7 @@ HB_BOOL hb_gt_winapi_setClipboard( HB_UINT uFormat, const char * szClipData, HB_ EmptyClipboard(); /* Allocate a global memory object for the text. */ - hglbCopy = GlobalAlloc( GMEM_MOVEABLE, uFormat == CF_UNICODETEXT ? ( ulLen + 1 ) * sizeof( wchar_t ) : ulLen + 1 ); + hglbCopy = GlobalAlloc( GMEM_MOVEABLE, uFormat == CF_UNICODETEXT ? ( ulLen + 1 ) * sizeof( wchar_t ) : ( ulLen + 1 ) ); if( hglbCopy ) { /* Lock the handle and copy the text to the buffer. */