From 0ffb88b947effe491dc1b67818e45d79086d7900 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Przemys=C5=82aw=20Czerpak?= Date: Mon, 16 Nov 2015 15:32:53 +0100 Subject: [PATCH] 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 --- ChangeLog.txt | 4 ++++ src/vm/thread.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) 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 ) ) {