2008-06-10 19:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/rtl/gtwvt/gtwvt.c
    ! do not use min()/max() C functions. These are not portable
      functions. Use HB_MIN()/HB_MAX() macros instead.
This commit is contained in:
Przemyslaw Czerpak
2008-06-10 17:36:27 +00:00
parent b3af473281
commit 1ac0a60e28
2 changed files with 7 additions and 2 deletions

View File

@@ -8,6 +8,11 @@
2008-12-31 13:59 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2008-06-10 19:36 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/rtl/gtwvt/gtwvt.c
! do not use min()/max() C functions. These are not portable
functions. Use HB_MIN()/HB_MAX() macros instead.
2008-06-10 19:03 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/hbw32/dllcall.c
! Fixed memory corruption when more than 15 parameters

View File

@@ -204,7 +204,7 @@ static PHB_GTWVT hb_gt_wvt_New( PHB_GT pGT )
pWVT->CaretExist = FALSE;
pWVT->CaretHidden = FALSE;
pWVT->CaretSize = max( ( pWVT->PTEXTSIZE.y >> 2 ) - 1, 1 );
pWVT->CaretSize = HB_MAX( ( pWVT->PTEXTSIZE.y >> 2 ) - 1, 1 );
pWVT->MousePos.x = 0;
pWVT->MousePos.y = 0;
pWVT->MouseMove = TRUE;
@@ -346,7 +346,7 @@ static void hb_gt_wvt_UpdateCaret( PHB_GTWVT pWVT )
iCaretSize = - ( pWVT->PTEXTSIZE.y >> 1 );
break;
case SC_NORMAL:
iCaretSize = max( ( pWVT->PTEXTSIZE.y >> 2 ) - 1, 1 );
iCaretSize = HB_MAX( ( pWVT->PTEXTSIZE.y >> 2 ) - 1, 1 );
break;
default:
iCaretSize = 0;