Author: pschweitzer
Date: Wed Aug 20 16:49:35 2008
New Revision: 35491
URL:
http://svn.reactos.org/svn/reactos?rev=35491&view=rev
Log:
Added a forgotten else
Modified:
branches/pierre-fsd/lib/rtl/dos8dot3.c
Modified: branches/pierre-fsd/lib/rtl/dos8dot3.c
URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/lib/rtl/dos8dot3.c?r…
==============================================================================
--- branches/pierre-fsd/lib/rtl/dos8dot3.c [iso-8859-1] (original)
+++ branches/pierre-fsd/lib/rtl/dos8dot3.c [iso-8859-1] Wed Aug 20 16:49:35 2008
@@ -278,20 +278,23 @@
if (i == AnsiName->Length - 1) return FALSE;
i++;
}
- switch (AnsiName->Buffer[i])
+ else
{
- case ' ':
- /* leading/trailing spaces not allowed */
- if (!i || i == AnsiName->Length-1 || AnsiName->Buffer[i+1] ==
'.') return FALSE;
- GotSpace = TRUE;
- break;
- case '.':
- if (Dot != -1) return FALSE;
- Dot = i;
- break;
- default:
- if (strchr(Illegal, AnsiName->Buffer[i])) return FALSE;
- break;
+ switch (AnsiName->Buffer[i])
+ {
+ case ' ':
+ /* leading/trailing spaces not allowed */
+ if (!i || i == AnsiName->Length-1 || AnsiName->Buffer[i+1] ==
'.') return FALSE;
+ GotSpace = TRUE;
+ break;
+ case '.':
+ if (Dot != -1) return FALSE;
+ Dot = i;
+ break;
+ default:
+ if (strchr(Illegal, AnsiName->Buffer[i])) return FALSE;
+ break;
+ }
}
}
/* check file part is shorter than 8, extension shorter than 3