Author: ion Date: Sun Dec 4 17:25:15 2011 New Revision: 54588
URL: http://svn.reactos.org/svn/reactos?rev=54588&view=rev Log: [RTL]: Clarify a comment.
Modified: trunk/reactos/lib/rtl/path.c
Modified: trunk/reactos/lib/rtl/path.c URL: http://svn.reactos.org/svn/reactos/trunk/reactos/lib/rtl/path.c?rev=54588&am... ============================================================================== --- trunk/reactos/lib/rtl/path.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/path.c [iso-8859-1] Sun Dec 4 17:25:15 2011 @@ -890,7 +890,14 @@ Length = CurDir->DosPath.Length / sizeof(WCHAR); ASSERT((CurDirName != NULL) && (Length > 0));
- /* Check for x:\ vs x:\path\foo (note the trailing slash) */ + /* + * DosPath.Buffer should always have a trailing slash. There is an assert + * below which checks for this. + * + * This function either returns x:\ for a root (keeping the original buffer) + * or it returns x:\path\foo for a directory (replacing the trailing slash + * with a NULL. + */ Bytes = Length * sizeof(WCHAR); if ((Length <= 1) || (CurDirName[Length - 2] == L':')) {