diff --git a/harbour/ChangeLog b/harbour/ChangeLog index a2170f0f41..f3c32010ba 100644 --- a/harbour/ChangeLog +++ b/harbour/ChangeLog @@ -8,6 +8,12 @@ 2002-12-01 23:12 UTC+0100 Foo Bar */ +2002-05-21 01:20 UTC-0500 Paul Tucker + * source/common/hbffind.c + * substitute constant for FILE_ATTRIBUTE_NOT_CONTENT_INDEXED + * since it is named differently or non-existant in earlier + * windows include files. (Borland specifically, but even from MS) + 2002-05-20 22:33 UTC+0100 J.lefebvre (Mafact) * contrib/htmllib * makefile.vc (Forget -p as Harbour param, creating ppo files when not needed) diff --git a/harbour/source/common/hbffind.c b/harbour/source/common/hbffind.c index ec140b3b49..21c13c871f 100644 --- a/harbour/source/common/hbffind.c +++ b/harbour/source/common/hbffind.c @@ -178,8 +178,9 @@ USHORT hb_fsAttrFromRaw( ULONG raw_attr ) if( raw_attr & FILE_ATTRIBUTE_REPARSE_POINT ) uiAttr |= HB_FA_REPARSE; if( raw_attr & FILE_ATTRIBUTE_COMPRESSED ) uiAttr |= HB_FA_COMPRESSED; if( raw_attr & FILE_ATTRIBUTE_OFFLINE ) uiAttr |= HB_FA_OFFLINE; - if( raw_attr & FILE_ATTRIBUTE_NOT_CONTENT_INDEXED ) - uiAttr |= HB_FA_NOTINDEXED; + /* FILE_ATTRIBUTE_NOT_CONTENT_INDEXED */ + /* not defined in some older winnt.h */ + if( raw_attr & 0x00002000 ) uiAttr |= HB_FA_NOTINDEXED; if( raw_attr & 0x00008000 ) uiAttr |= HB_FA_VOLCOMP; #endif @@ -251,6 +252,7 @@ ULONG hb_fsAttrToRaw( USHORT uiAttr ) 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_VOLCOMP ) raw_attr |= 0x00008000; #endif