2008-09-22 22:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/vm/thread.c
    ! fixed GPF when hb_threadSelf() was executed from thread without
      allocated ID object (f.e. main thread)
This commit is contained in:
Przemyslaw Czerpak
2008-09-22 20:09:27 +00:00
parent 19b2d7a10e
commit afd254adc2
2 changed files with 7 additions and 1 deletions

View File

@@ -8,6 +8,11 @@
2008-12-31 13:59 UTC+0100 Foo Bar (foo.bar foobar.org)
*/
2008-09-22 22:08 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl)
* harbour/source/vm/thread.c
! fixed GPF when hb_threadSelf() was executed from thread without
allocated ID object (f.e. main thread)
2008-09-22 16:19 UTC-0300 Antonio Carlos Pantaglione <toninho@fwi.com.br>
* harbour/contrib/rddads/ads1.c
* using AdsCreateIndex61 when ADS_LIB_VERSION >= 610. This functions use

View File

@@ -643,7 +643,8 @@ HB_FUNC( HB_THREADSELF )
{
#if defined( HB_MT_VM )
PHB_THREADSTATE pThread = ( PHB_THREADSTATE ) hb_vmThreadState();
hb_itemReturn( pThread->pThItm );
if( pThread )
hb_itemReturn( pThread->pThItm );
#endif
}