2008-05-15 17:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/contrib/gtwvg/gtwvg.c
  * harbour/source/rtl/gtwvt/gtwvt.c
    ! fixed memory corruption caused by missing ASCII-0 terminator
      when window title is retrieve
This commit is contained in:
Przemyslaw Czerpak
2008-05-15 15:58:46 +00:00
parent 2b2ad88096
commit 2f707a4e15
3 changed files with 10 additions and 2 deletions

View File

@@ -8,6 +8,12 @@
2008-12-31 13:59 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2008-05-15 17:58 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/contrib/gtwvg/gtwvg.c
* harbour/source/rtl/gtwvt/gtwvt.c
! fixed memory corruption caused by missing ASCII-0 terminator
when window title is retrieve
2008-05-15 12:37 UTC+0100 Viktor Szakats (harbour.01 syenar hu)
* contrib/rddads/rddads.h
! Fix to previous commit to avoid warning. (and again)

View File

@@ -428,7 +428,8 @@ static BOOL hb_gt_wvt_GetWindowTitle( char ** title )
if( iResult > 0 )
{
*title = ( char * ) hb_xgrab( iResult + 1 );
HB_TCHAR_CONVNREV( *title, buffer, iResult );
HB_TCHAR_GETFROM( *title, buffer, iResult );
( *title )[ iResult ] = '\0';
return TRUE;
}

View File

@@ -362,7 +362,8 @@ static BOOL hb_gt_wvt_GetWindowTitle( HWND hWnd, char ** title )
if( iResult > 0 )
{
*title = ( char * ) hb_xgrab( iResult + 1 );
HB_TCHAR_CONVNREV( *title, buffer, iResult );
HB_TCHAR_GETFROM( *title, buffer, iResult );
( *title )[ iResult ] = '\0';
return TRUE;
}