[ros-diffs] [pschweitzer] 34563: Fixed bugs in FsRtlIsFatDbcsLegal
pschweitzer at svn.reactos.org
pschweitzer at svn.reactos.org
Thu Jul 17 14:41:20 CEST 2008
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/dbcsname.c?rev=34563&r1=34562&r2=34563&view=diff
==============================================================================
--- 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;
}
More information about the Ros-diffs
mailing list