- Fix returning relative path names for path API calls using RtlpDosPathNameToRelativeNtPathName_Ustr on the backend

svn path=/trunk/; revision=52732
This commit is contained in:
Cameron Gutman 2011-07-20 05:34:33 +00:00
parent 629b082a69
commit d559321dff

View file

@ -596,6 +596,7 @@ RtlpDosPathNameToRelativeNtPathName_Ustr(IN BOOLEAN HaveRelative,
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);