From e7d97bea2718f60b3d18c0aed84c79bfa753e7de Mon Sep 17 00:00:00 2001 From: Przemyslaw Czerpak Date: Fri, 28 Sep 2007 21:57:23 +0000 Subject: [PATCH] 2007-09-28 23:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/source/rdd/dbf1.c ! fixed typo in hb_dbfGetRowVer() reported by Mindaugas, many thanks for information, it was side effect of some experiments I hadn't cleanly removed before commit. --- harbour/ChangeLog | 6 ++++++ harbour/source/rdd/dbf1.c | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 9cd7a5c620..343693b3ef 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2002-12-01 13:30 UTC+0100 Foo Bar */ +2007-09-28 23:57 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) + * harbour/source/rdd/dbf1.c + ! fixed typo in hb_dbfGetRowVer() reported by Mindaugas, many + thanks for information, it was side effect of some experiments + I hadn't cleanly removed before commit. + 2007-09-28 19:26 UTC+0200 Przemyslaw Czerpak (druzus/at/priv.onet.pl) * harbour/include/hbcomp.h * pass compile time -ks state to RT macro compiler flags. diff --git a/harbour/source/rdd/dbf1.c b/harbour/source/rdd/dbf1.c index ecba7fc726..03a621ec87 100644 --- a/harbour/source/rdd/dbf1.c +++ b/harbour/source/rdd/dbf1.c @@ -205,7 +205,7 @@ static HB_LONG hb_dbfGetRowVer( DBFAREAP pArea, USHORT uiField, HB_LONG * pValue if( hb_fsRead( pArea->hDataFile, ( BYTE * ) &dbField, sizeof( dbField ) ) == sizeof( dbField ) ) { - *pValue = HB_GET_LE_UINT32( &dbField.bReserved2 ) + 1; + *pValue = HB_GET_LE_UINT64( &dbField.bReserved2 ) + 1; HB_PUT_LE_UINT64( dbField.bReserved2, *pValue ); hb_fsSeek( pArea->hDataFile, sizeof( DBFHEADER ) + uiField * sizeof( DBFFIELD ), FS_SET );