From 3b7af7ed99a27ed5de905e6323b3112e63b86208 Mon Sep 17 00:00:00 2001 From: Mindaugas Kavaliauskas Date: Fri, 24 Feb 2012 11:24:32 +0000 Subject: [PATCH] 2012-02-24 13:23 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) * contrib/rddbm/bmdbfx.c ! fixed GPF after filter reallocation --- harbour/ChangeLog | 4 ++++ harbour/contrib/rddbm/bmdbfx.c | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 7a649a4021..c39f1780b0 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -16,6 +16,10 @@ The license applies to all entries newer than 2009-04-28. */ +2012-02-24 13:23 UTC+0200 Mindaugas Kavaliauskas (dbtopas/at/dbtopas.lt) + * contrib/rddbm/bmdbfx.c + ! fixed GPF after filter reallocation + 2012-02-23 15:16 UTC+0100 Viktor Szakats (harbour syenar.net) * INSTALL ! updated mingw make links diff --git a/harbour/contrib/rddbm/bmdbfx.c b/harbour/contrib/rddbm/bmdbfx.c index 2b399a77c2..8a91aeb1da 100644 --- a/harbour/contrib/rddbm/bmdbfx.c +++ b/harbour/contrib/rddbm/bmdbfx.c @@ -479,7 +479,7 @@ static HB_BOOL hb_bmEvalFilter( AREAP pArea, HB_BOOL fUpdate ) nOldSize = sizeof( BM_FILTER ) + BM_BYTESIZE( pBM->maxrec ); if( nSize > nOldSize ) { - pBM = ( PBM_FILTER ) hb_xrealloc( pBM, nSize ); + pArea->dbfi.lpvCargo = pBM = ( PBM_FILTER ) hb_xrealloc( pBM, nSize ); memset( ( HB_BYTE * ) pBM + nOldSize, 0xFF, nSize - nOldSize ); } pBM->maxrec = ( HB_U32 ) ulRecNo;