[ros-diffs] [cwittich] 31993: changed the index to get better readable code spotted by pablo at menichini dot com dot ar

cwittich at svn.reactos.org cwittich at svn.reactos.org
Fri Jan 25 15:18:42 CET 2008


Author: cwittich
Date: Fri Jan 25 17:18:41 2008
New Revision: 31993

URL: http://svn.reactos.org/svn/reactos?rev=31993&view=rev
Log:
changed the index to get better readable code
spotted by pablo at menichini dot com dot ar

Modified:
    trunk/reactos/drivers/filesystems/vfat/dirwr.c

Modified: trunk/reactos/drivers/filesystems/vfat/dirwr.c
URL: http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/filesystems/vfat/dirwr.c?rev=31993&r1=31992&r2=31993&view=diff
==============================================================================
--- trunk/reactos/drivers/filesystems/vfat/dirwr.c (original)
+++ trunk/reactos/drivers/filesystems/vfat/dirwr.c Fri Jan 25 17:18:41 2008
@@ -327,9 +327,9 @@
   if (aName[i] == '.')
     {
       i++;
-      for (j = 8; j < 11 && aName[i]; j++, i++)
-        {
-          DirContext.DirEntry.Fat.Ext[j - 8] = aName[i];
+      for (j = 0; j < 3 && aName[i]; j++, i++)
+        {
+          DirContext.DirEntry.Fat.Ext[j] = aName[i];
         }
     }
   if (DirContext.DirEntry.Fat.Filename[0] == 0xe5)




More information about the Ros-diffs mailing list