2008-01-12 13:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/vm/itemapi.c
    ! fixed hb_itemLockReadCPtr() used for static strings
This commit is contained in:
Przemyslaw Czerpak
2008-01-12 12:13:04 +00:00
parent 59eb815320
commit 046ef2656f
2 changed files with 6 additions and 0 deletions

View File

@@ -8,6 +8,10 @@
2002-12-01 13:30 UTC+0100 Foo Bar <foo.bar@foobar.org>
*/
2008-01-12 13:12 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/itemapi.c
! fixed hb_itemLockReadCPtr() used for static strings
2008-01-11 22:35 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/itemapi.c
! use hb_xRefFree() instead of hb_xRefDec() in hb_itemUnLockCPtr()

View File

@@ -445,6 +445,8 @@ HB_EXPORT char * hb_itemLockReadCPtr( PHB_ITEM pItem, ULONG * pulLen )
if( pItem && HB_IS_STRING( pItem ) )
{
if( pItem->item.asString.allocated == 0 )
hb_itemUnShareString( pItem );
if( pulLen )
*pulLen = pItem->item.asString.length;
hb_xRefInc( pItem->item.asString.value );