Author: cgutman Date: Wed Jul 20 05:34:33 2011 New Revision: 52732
URL: http://svn.reactos.org/svn/reactos?rev=52732&view=rev Log: [RTL] - Fix returning relative path names for path API calls using RtlpDosPathNameToRelativeNtPathName_Ustr on the backend
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=52732&am... ============================================================================== --- trunk/reactos/lib/rtl/path.c [iso-8859-1] (original) +++ trunk/reactos/lib/rtl/path.c [iso-8859-1] Wed Jul 20 05:34:33 2011 @@ -596,6 +596,7 @@ if (cd->Handle) { RtlInitUnicodeString(&us, Buffer); + us.Length = (cd->DosPath.Length < us.Length) ? cd->DosPath.Length : us.Length; if (RtlEqualUnicodeString(&us, &cd->DosPath, TRUE)) { Length = ((cd->DosPath.Length / sizeof(WCHAR)) - PrefixCut) + ((InputPathType == 1) ? 8 : 4);