From cf67f773337cf9366b1d4715ecedebcdb4429f68 Mon Sep 17 00:00:00 2001 From: Chen Kedem Date: Mon, 9 Sep 2002 13:48:33 +0000 Subject: [PATCH] 2002-09-09 16:48 UTC+0300 Chen Kedem --- harbour/ChangeLog | 6 ++++++ harbour/source/common/hbffind.c | 5 ++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/harbour/ChangeLog b/harbour/ChangeLog index c5d05f91f1..e3756d5240 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2002-09-09 16:48 UTC+0300 Chen Kedem + * source/common/hbffind.c + - Remove redundant line which used FILE_ATTRIBUTE_NOT_CONTENT_INDEXED + from hb_fsAttToRaw(). The next line already use the explicit + value 0x00002000. Now Harbour complie with Borland BCB 3.0 + 2002-09-09 14:25 UTC+0100 Tomaz Zupan * contrib/odbc/todbc.prg + Added recordset caching. diff --git a/harbour/source/common/hbffind.c b/harbour/source/common/hbffind.c index c8c74f725d..b67efcd4f2 100644 --- a/harbour/source/common/hbffind.c +++ b/harbour/source/common/hbffind.c @@ -251,8 +251,7 @@ ULONG hb_fsAttrToRaw( USHORT uiAttr ) if( uiAttr & HB_FA_REPARSE ) raw_attr |= FILE_ATTRIBUTE_REPARSE_POINT; if( uiAttr & HB_FA_COMPRESSED ) raw_attr |= FILE_ATTRIBUTE_COMPRESSED; if( uiAttr & HB_FA_OFFLINE ) raw_attr |= FILE_ATTRIBUTE_OFFLINE; - if( uiAttr & HB_FA_NOTINDEXED ) raw_attr |= FILE_ATTRIBUTE_NOT_CONTENT_INDEXED; - if( uiAttr & HB_FA_NOTINDEXED ) raw_attr |= 0x00002000; /* FILE_ATTRIBUTE_NOT_CONTENT_INDEXED */ + if( uiAttr & HB_FA_NOTINDEXED ) raw_attr |= 0x00002000; /* FILE_ATTRIBUTE_NOT_CONTENT_INDEXED not defined in some older winnt.h */ if( uiAttr & HB_FA_VOLCOMP ) raw_attr |= 0x00008000; #endif @@ -666,7 +665,7 @@ PHB_FFIND hb_fsFindFirst( const char * pszFileName, USHORT uiAttr ) strcpy( info->pattern, string ); strcpy( dirname, ".X" ); dirname[ 1 ] = OS_PATH_DELIMITER; - dirname[ 2 ] = '\0'; + dirname[ 2 ] = '\0'; } } if( !*info->pattern )