diff --git a/ChangeLog.txt b/ChangeLog.txt index 3a516cbdc5..e1d3a4778a 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -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 diff --git a/src/rtl/gtxwc/gtxwc.c b/src/rtl/gtxwc/gtxwc.c index a83b717856..8d553a8e18 100644 --- a/src/rtl/gtxwc/gtxwc.c +++ b/src/rtl/gtxwc/gtxwc.c @@ -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;