2009-01-14 01:38 UTC+0100 Przemyslaw Czerpak (druzus/at/priv.onet.pl)

* harbour/source/rtl/gtxwc/gtxwc.c
    ! added protection against inaccessible character cell value
      what could cause accessing uninitialized memory and GPF

  * harbour/include/hbrdddbf.h
    ! fixed HB_DIRTYREAD() macro not updated when RDDI_* settings were
      converted from global to thread local

  * harbour/source/rdd/dbf1.c
  * harbour/source/rdd/dbfntx/dbfntx1.c
  * harbour/source/rdd/dbfnsx/dbfnsx1.c
  * harbour/source/rdd/dbfcdx/dbfcdx1.c
  * harbour/source/rdd/dbffpt/dbffpt1.c
    % replaced <RDD>NODE_DATA() and <RDD>AREA_DATA() macros defined
      in each RDD by common for all DBF bases RDDs DBFNODE_DATA() and
      DBFAREA_DATA() macros defined in hbrdddbf.h to reduce possible
      mistakes in code updating in the future
This commit is contained in:
Przemyslaw Czerpak
2009-01-14 00:35:33 +00:00
parent 558525e5b5
commit 39ffeed5f9
8 changed files with 67 additions and 49 deletions

View File

@@ -112,9 +112,13 @@ HB_EXTERN_BEGIN
#define HB_IDXREAD_CLEANMASK HB_IDXREAD_DIRTY
#define HB_IDXREAD_DIRTYMASK (HB_IDXREAD_DIRTY|HB_IDXREAD_DEFAULT)
#define HB_DIRTYREAD(w) ( ( ( ( LPDBFDATA ) SELF_RDDNODE( w )-> \
lpvCargo )->uiDirtyRead & \
(w)->uiDirtyRead ) != 0 )
#define DBFNODE_DATA( r ) ( ( LPDBFDATA ) hb_stackGetTSD( ( PHB_TSD ) \
( r )->lpvCargo ) )
#define DBFAREA_DATA( w ) DBFNODE_DATA( SELF_RDDNODE( w ) )
#define HB_DIRTYREAD( w ) ( ( DBFAREA_DATA( w )->uiDirtyRead & \
( w )->uiDirtyRead ) != 0 )
/*