FRead() fix for dynamic strings use with more than one holder
This commit is contained in:
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user