Fixed/updated the file attributes defines.
diff --git a/dlls/winedos/int21.c b/dlls/winedos/int21.c index 8cdc114..2155f13 100644 --- a/dlls/winedos/int21.c +++ b/dlls/winedos/int21.c
@@ -1031,7 +1031,7 @@ { WORD dosAttributes = CX_reg(context); - if (dosAttributes & FILE_ATTRIBUTE_LABEL) + if (dosAttributes & FA_LABEL) { /* * Application tried to create volume label entry. @@ -3743,7 +3743,7 @@ RtlSecondsSince1970ToTime( (time_t)0, (LARGE_INTEGER *)&entry->ftCreationTime ); RtlSecondsSince1970ToTime( (time_t)0, (LARGE_INTEGER *)&entry->ftLastAccessTime ); RtlSecondsSince1970ToTime( (time_t)0, (LARGE_INTEGER *)&entry->ftLastWriteTime ); - entry->dwFileAttributes = FILE_ATTRIBUTE_LABEL; + entry->dwFileAttributes = FA_LABEL; entry->nFileSizeHigh = entry->nFileSizeLow = 0; TRACE("returning %s as label\n", debugstr_w(entry->cAlternateFileName)); return 1;
diff --git a/include/winnt.h b/include/winnt.h index 02b76ac..3316608 100644 --- a/include/winnt.h +++ b/include/winnt.h
@@ -3275,18 +3275,20 @@ #define FILE_SHARE_READ 0x00000001L #define FILE_SHARE_WRITE 0x00000002L #define FILE_SHARE_DELETE 0x00000004L -#define FILE_ATTRIBUTE_READONLY 0x00000001L -#define FILE_ATTRIBUTE_HIDDEN 0x00000002L -#define FILE_ATTRIBUTE_SYSTEM 0x00000004L -#define FILE_ATTRIBUTE_LABEL 0x00000008L /* Not in Windows API */ -#define FILE_ATTRIBUTE_DIRECTORY 0x00000010L -#define FILE_ATTRIBUTE_ARCHIVE 0x00000020L -#define FILE_ATTRIBUTE_NORMAL 0x00000080L -#define FILE_ATTRIBUTE_TEMPORARY 0x00000100L -#define FILE_ATTRIBUTE_ATOMIC_WRITE 0x00000200L -#define FILE_ATTRIBUTE_XACTION_WRITE 0x00000400L -#define FILE_ATTRIBUTE_COMPRESSED 0x00000800L -#define FILE_ATTRIBUTE_OFFLINE 0x00001000L + +#define FILE_ATTRIBUTE_READONLY 0x00000001 +#define FILE_ATTRIBUTE_HIDDEN 0x00000002 +#define FILE_ATTRIBUTE_SYSTEM 0x00000004 +#define FILE_ATTRIBUTE_DIRECTORY 0x00000010 +#define FILE_ATTRIBUTE_ARCHIVE 0x00000020 +#define FILE_ATTRIBUTE_NORMAL 0x00000080 +#define FILE_ATTRIBUTE_TEMPORARY 0x00000100 +#define FILE_ATTRIBUTE_SPARSE_FILE 0x00000200 +#define FILE_ATTRIBUTE_REPARSE_POINT 0x00000400 +#define FILE_ATTRIBUTE_COMPRESSED 0x00000800 +#define FILE_ATTRIBUTE_OFFLINE 0x00001000 +#define FILE_ATTRIBUTE_NOT_CONTENT_INDEXED 0x00002000 +#define FILE_ATTRIBUTE_ENCRYPTED 0x00004000 /* File notification flags */ #define FILE_NOTIFY_CHANGE_FILE_NAME 0x00000001