[ros-diffs] [gvg] 20005: Synthesize FILE_ATTRIBUTE_NORMAL on NetworkOpenInformation query too.

gvg at svn.reactos.com gvg at svn.reactos.com
Fri Dec 9 14:23:38 CET 2005


Synthesize FILE_ATTRIBUTE_NORMAL on NetworkOpenInformation query too.
This fixes the final problem with the Firefox installer.
Modified: trunk/reactos/drivers/fs/vfat/finfo.c
  _____  

Modified: trunk/reactos/drivers/fs/vfat/finfo.c
--- trunk/reactos/drivers/fs/vfat/finfo.c	2005-12-09 09:22:29 UTC
(rev 20004)
+++ trunk/reactos/drivers/fs/vfat/finfo.c	2005-12-09 13:23:33 UTC
(rev 20005)
@@ -252,6 +252,7 @@

                                          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 @@
       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;
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.reactos.org/pipermail/ros-diffs/attachments/20051209/d52f62ea/attachment.html


More information about the Ros-diffs mailing list