From bbbb4ccf95b3d68d3845ceed59e2dce020d859f7 Mon Sep 17 00:00:00 2001 From: Cameron Gutman Date: Wed, 20 Jul 2011 07:11:38 +0000 Subject: [PATCH] [RTL] - Fix the string length calculation for the partial name - Fixes the 2nd stage regression svn path=/trunk/; revision=52733 --- reactos/lib/rtl/path.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/reactos/lib/rtl/path.c b/reactos/lib/rtl/path.c index 5d8d197e07d..238bbc22126 100644 --- a/reactos/lib/rtl/path.c +++ b/reactos/lib/rtl/path.c @@ -567,7 +567,7 @@ RtlpDosPathNameToRelativeNtPathName_Ustr(IN BOOLEAN HaveRelative, if (NT_SUCCESS(Status)) { /* Set the partial name */ - *PartName = &NewBuffer[LengthChars - PartNameString.Length]; + *PartName = &NewBuffer[LengthChars - (PartNameString.Length / sizeof(WCHAR))]; } else {