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/d…
==============================================================================
--- 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)