Author: pschweitzer
Date: Thu Jul 17 07:41:20 2008
New Revision: 34563
URL:
http://svn.reactos.org/svn/reactos?rev=34563&view=rev
Log:
Fixed bugs in FsRtlIsFatDbcsLegal
Modified:
branches/pierre-fsd/ntoskrnl/fsrtl/dbcsname.c
Modified: branches/pierre-fsd/ntoskrnl/fsrtl/dbcsname.c
URL:
http://svn.reactos.org/svn/reactos/branches/pierre-fsd/ntoskrnl/fsrtl/dbcsn…
==============================================================================
--- branches/pierre-fsd/ntoskrnl/fsrtl/dbcsname.c [iso-8859-1] (original)
+++ branches/pierre-fsd/ntoskrnl/fsrtl/dbcsname.c [iso-8859-1] Thu Jul 17 07:41:20 2008
@@ -217,10 +217,10 @@
return FALSE;
/* Now, only work on filename */
- if (LastSlash)
+ if (LastSlash || FirstSlash)
{
FileName.Buffer = DbcsName.Buffer + LastSlash + 1;
- FileName.Length = (DbcsName.Length - LastSlash) * sizeof(CHAR);
+ FileName.Length = (DbcsName.Length - LastSlash - 1) * sizeof(CHAR);
FileName.MaximumLength = DbcsName.MaximumLength - FileName.Length;
}