Hello Przemek

I have made this change in hbgtcore.c

PHB_GT hb_gt_ItemBase( PHB_ITEM pItemGT )
{
   if( pItemGT )
   {
      void ** gtHolder = ( void ** ) hb_itemGetPtrGC( pItemGT,
hb_gt_Destructor );
      PHB_GT pGT = NULL;

      if( gtHolder )
         pGT = ( PHB_GT ) *gtHolder;

      if( pGT && HB_GTSELF_LOCK( pGT ) )
         return pGT;
      else
         return NULL;
   }
   else
   {
      return NULL;
   }
}

Can you review and commit. 
All other compilers do not produce any errors
while PellesC x86 GPF's if <pItemGT == NULL>.

Regards
Pritpal Bedi
-- 
View this message in context: 
http://www.nabble.com/hb_gt_ItemBase%28%29-and-PellesC-tp22344045p22344045.html
Sent from the Harbour - Dev mailing list archive at Nabble.com.

_______________________________________________
Harbour mailing list
[email protected]
http://lists.harbour-project.org/mailman/listinfo/harbour

Reply via email to