mirror of
https://github.com/reactos/reactos.git
synced 2024-11-06 14:44:19 +00:00
Synthesize FILE_ATTRIBUTE_NORMAL on NetworkOpenInformation query too.
This fixes the final problem with the Firefox installer. svn path=/trunk/; revision=20005
This commit is contained in:
parent
3b5049b3a5
commit
4a5c2d8537
1 changed files with 11 additions and 0 deletions
|
@ -252,6 +252,7 @@ VfatGetBasicInformation(PFILE_OBJECT FileObject,
|
|||
FILE_ATTRIBUTE_HIDDEN |
|
||||
FILE_ATTRIBUTE_READONLY)))
|
||||
{
|
||||
DPRINT("Synthesizing FILE_ATTRIBUTE_NORMAL\n");
|
||||
BasicInfo->FileAttributes |= FILE_ATTRIBUTE_NORMAL;
|
||||
}
|
||||
DPRINT("Getting attributes 0x%02x\n", BasicInfo->FileAttributes);
|
||||
|
@ -428,6 +429,16 @@ VfatGetNetworkOpenInformation(PVFATFCB Fcb,
|
|||
NetworkInfo->EndOfFile = Fcb->RFCB.FileSize;
|
||||
}
|
||||
NetworkInfo->FileAttributes = *Fcb->Attributes & 0x3f;
|
||||
/* Synthesize FILE_ATTRIBUTE_NORMAL */
|
||||
if (0 == (NetworkInfo->FileAttributes & (FILE_ATTRIBUTE_DIRECTORY |
|
||||
FILE_ATTRIBUTE_ARCHIVE |
|
||||
FILE_ATTRIBUTE_SYSTEM |
|
||||
FILE_ATTRIBUTE_HIDDEN |
|
||||
FILE_ATTRIBUTE_READONLY)))
|
||||
{
|
||||
DPRINT("Synthesizing FILE_ATTRIBUTE_NORMAL\n");
|
||||
NetworkInfo->FileAttributes |= FILE_ATTRIBUTE_NORMAL;
|
||||
}
|
||||
|
||||
*BufferLength -= sizeof(FILE_NETWORK_OPEN_INFORMATION);
|
||||
return STATUS_SUCCESS;
|
||||
|
|
Loading…
Reference in a new issue