2015-02-24 11:14 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)

* src/rtl/gtxwc/gtxwc.c
    ! fixed GPF when empty window title is set and then retrieve - thanks
      to Teo.
This commit is contained in:
Przemysław Czerpak
2015-02-24 11:14:51 +01:00
parent 0bcc223b14
commit 0abd7da585
2 changed files with 9 additions and 2 deletions

View File

@@ -10,6 +10,11 @@
* Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment
*/
2015-02-24 11:14 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* src/rtl/gtxwc/gtxwc.c
! fixed GPF when empty window title is set and then retrieve - thanks
to Teo.
2015-02-23 17:47 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl)
* contrib/hbodbc/odbc.c
* rewritten function SQLGetData() - new code is much simpler and

View File

@@ -5353,8 +5353,10 @@ static HB_BOOL hb_gt_xwc_Info( PHB_GT pGT, int iType, PHB_GT_INFO pInfo )
}
case HB_GTI_WINTITLE:
pInfo->pResult = hb_itemPutStrLenUTF8( pInfo->pResult, wnd->szTitle,
strlen( wnd->szTitle ) );
pInfo->pResult = wnd->szTitle ?
hb_itemPutStrLenUTF8( pInfo->pResult, wnd->szTitle,
strlen( wnd->szTitle ) ) :
hb_itemPutC( pInfo->pResult, NULL );
if( hb_itemType( pInfo->pNewVal ) & HB_IT_STRING )
{
void * hString;