mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-08-29 19:26:33 +00:00
[RTL]
- 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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user