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:
@@ -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)
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user