From 5eaaa368ce905d8cce0d6a5a501815b0a9c8ea8d Mon Sep 17 00:00:00 2001 From: Paul Tucker Date: Mon, 26 Jul 1999 19:41:25 +0000 Subject: [PATCH] *** empty log message *** --- harbour/ChangeLog | 5 +++++ harbour/source/rdd/dbcmd.c | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index 98306c4643..bbd2eb9a96 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -1,3 +1,8 @@ +19990726-03:25 EDT Paul Tucker + * source/rtl/dbcmd.c + * memset(pWorkAreas,0,sizeof(AREA)); in rddInit + * a couple more (or maybe the same) casts to help msvc. + 19990726-20:52 CET Victor Szel * tests/working/rtl_test.prg - make use of the preproc and thus it's more easy to expand it, and fewer human diff --git a/harbour/source/rdd/dbcmd.c b/harbour/source/rdd/dbcmd.c index 913aff6e20..6261b523c3 100644 --- a/harbour/source/rdd/dbcmd.c +++ b/harbour/source/rdd/dbcmd.c @@ -112,6 +112,7 @@ void hb_rddInitialize( void ) szDefDriver = ( char * ) hb_xgrab( 1 ); szDefDriver[ 0 ] = '\0'; pWorkAreas = ( AREAP ) hb_xgrab( sizeof( AREA ) ); + memset(pWorkAreas, 0, sizeof(AREA)); uiWorkAreas = 1; } @@ -392,7 +393,7 @@ HARBOUR HB_DBCREATE( void ) return; } - pInfo.abName = szFileName; + pInfo.abName = (PBYTE)szFileName; ( * pFunction )( &pWorkAreas[ uiCurrArea - 1 ], &pInfo ); pWorkAreas[ uiCurrArea - 1 ].rddID = 0; } @@ -628,8 +629,8 @@ HARBOUR HB_DBUSEAREA( void ) szAlias = ISCHAR( 4 ) ? hb_parc( 4 ) : szFileName; pInfo.uiArea = uiCurrArea; - pInfo.abName = szFileName; - pInfo.atomAlias = szAlias; + pInfo.abName = (PBYTE)szFileName; + pInfo.atomAlias = (PBYTE)szAlias; pInfo.fShared = ISLOG( 5 ) ? hb_parl( 5 ) : !hb_set.HB_SET_EXCLUSIVE; pInfo.fReadonly = ISLOG( 6 ) ? hb_parl( 6 ) : FALSE; ( * pFunction2 )( &pWorkAreas[ uiCurrArea - 1 ], &pInfo );