From 7d4e86ceba549e6dd7e5087e30fa73b1613c2074 Mon Sep 17 00:00:00 2001 From: "Alexander S.Kresin" Date: Fri, 9 Feb 2001 09:10:52 +0000 Subject: [PATCH] 2001-02-09 12:10 GMT+3 Alexander Kresin --- harbour/ChangeLog | 4 ++++ harbour/source/rdd/dbfntx/dbfntx1.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 166deeb330..027867bdaf 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,7 @@ +2001-02-09 12:10 GMT+3 Alexander Kresin + * harbour/source/rdd/dbfntx/dbfntx1.c + * bug fixed, which have appeared after last change + 2001-02-09 09:15 GMT+1 Maurilio Longo * source/debug/Makefile + added dbgwa.prg to GCC Makefile diff --git a/harbour/source/rdd/dbfntx/dbfntx1.c b/harbour/source/rdd/dbfntx/dbfntx1.c index 3e751224f9..1183483794 100644 --- a/harbour/source/rdd/dbfntx/dbfntx1.c +++ b/harbour/source/rdd/dbfntx/dbfntx1.c @@ -1474,7 +1474,6 @@ static ERRCODE hb_ntxHeaderLoad( LPNTXINDEX pIndex , char *ITN) ULONG ulPos; ulPos = hb_fsSeek( pIndex->DiskFile, 0, SEEK_END ); - pTag->TagBlock = ulPos/1024; hb_fsSeek( pIndex->DiskFile , 0 , 0 ); if( hb_fsRead( pIndex->DiskFile,(BYTE*)&Header,sizeof(NTXHEADER)) != sizeof(NTXHEADER) ) @@ -1488,6 +1487,7 @@ static ERRCODE hb_ntxHeaderLoad( LPNTXINDEX pIndex , char *ITN) memset( pTag, 0, sizeof( TAGINFO ) ); pIndex->CompoundTag = pTag; pIndex->NextAvail = Header.next_page; + pTag->TagBlock = ulPos/1024; pTag->RootBlock = Header.root; pTag->TagName = (char *) hb_xgrab( strlen( ITN ) + 1 ); hb_strncpyUpper( pTag->TagName, ITN, strlen( ITN ) );