diff --git a/ChangeLog.txt b/ChangeLog.txt index 1bafc3f605..fc7eb4eb61 100644 --- a/ChangeLog.txt +++ b/ChangeLog.txt @@ -10,6 +10,10 @@ * Change, ! Fix, % Optimization, + Addition, - Removal, ; Comment */ +2015-11-16 15:32 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) + * src/vm/thread.c + ! fixed typo in hb_threadOnceInit() - thanks to Teo + 2015-11-14 13:19 UTC+0100 Przemyslaw Czerpak (druzus/at/poczta.onet.pl) * src/rtl/filebuf.c ! restored _SET_DEFAULT and _SET_PATH functionality diff --git a/src/vm/thread.c b/src/vm/thread.c index 3fde9c5844..a11430b7d0 100644 --- a/src/vm/thread.c +++ b/src/vm/thread.c @@ -1622,7 +1622,7 @@ HB_FUNC( HB_THREADONCE ) HB_FUNC( HB_THREADONCEINIT ) { PHB_ITEM pItem = hb_param( 1, HB_IT_ANY ); - PHB_ITEM pValue = hb_param( 1, HB_IT_ANY ); + PHB_ITEM pValue = hb_param( 2, HB_IT_ANY ); if( pItem && pValue && HB_ISBYREF( 1 ) && ! HB_ISBYREF( 2 ) ) {