2001-03-24 23:07 GMT-3 Horacio Roldan <horacioroldan@usa.net>

* harbour/source/rdd/dbf1.c
     * fixed bug handling drive letter in opening memo file
This commit is contained in:
Horacio Dario Roldan Kasimatis
2001-03-25 02:08:33 +00:00
parent 0fef17cf67
commit 7d97272e48
2 changed files with 7 additions and 9 deletions

View File

@@ -1,3 +1,7 @@
2001-03-24 23:07 GMT-3 Horacio Roldan <horacioroldan@usa.net>
* harbour/source/rdd/dbf1.c
* fixed bug handling drive letter in opening memo file
2001-03-24 02:20 UTC-0800 Ron Pinkas <ron@profit-master.com>
* source/compiler/simplex.c
* Minor fix for VC++

View File

@@ -1555,10 +1555,7 @@ ERRCODE hb_dbfCreate( DBFAREAP pArea, LPDBOPENINFO pCreateInfo )
{
pArea->szMemoFileName = ( char * ) hb_xgrab( _POSIX_PATH_MAX + 1 );
pFileName = hb_fsFNameSplit( ( char * ) pCreateInfo->abName );
if( pFileName->szDrive )
strcpy( pArea->szMemoFileName, pFileName->szDrive );
else
pArea->szMemoFileName[ 0 ] = 0;
pArea->szMemoFileName[ 0 ] = 0;
if( pFileName->szPath )
strcat( pArea->szMemoFileName, pFileName->szPath );
strcat( pArea->szMemoFileName, pFileName->szName );
@@ -1714,10 +1711,7 @@ ERRCODE hb_dbfOpen( DBFAREAP pArea, LPDBOPENINFO pOpenInfo )
pFileExt = hb_itemPutC( NULL, "" );
SELF_INFO( ( AREAP ) pArea, DBI_MEMOEXT, pFileExt );
szFileName = ( char * ) hb_xgrab( _POSIX_PATH_MAX + 1 );
if( pFileName->szDrive )
strcpy( szFileName, pFileName->szDrive );
else
szFileName[ 0 ] = 0;
szFileName[ 0 ] = 0;
if( pFileName->szPath )
strcat( szFileName, pFileName->szPath );
strcat( szFileName, pFileName->szName );
@@ -2523,4 +2517,4 @@ HB_FUNC( DBF_GETFUNCTABLE )
hb_retni( hb_rddInherit( pTable, &dbfTable, &dbfSuper, 0 ) );
else
hb_retni( FAILURE );
}
}