FRead() fix for dynamic strings use with more than one holder

This commit is contained in:
Antonio Linares
2002-10-19 10:16:04 +00:00
parent 87471c0897
commit 283dd53b82

View File

@@ -96,7 +96,8 @@ HB_FUNC( FREAD )
{
PHB_ITEM pItem = hb_itemUnRef( hb_stackItemFromBase( 2 ) );
if( pItem->item.asString.bStatic == TRUE )
if( pItem->item.asString.bStatic == TRUE ||
( * pItem->item.asString.puiHolders ) > 1 )
hb_itemPutC( pItem, hb_parc( 2 ) );
ulRead = hb_parnl( 3 );