diff --git a/xtldr2/volume.c b/xtldr2/volume.c index c4ded1b..32cfed7 100644 --- a/xtldr2/volume.c +++ b/xtldr2/volume.c @@ -839,8 +839,8 @@ BlpDissectVolumeArcPath(IN PWCHAR SystemPath, /* Store ARC name if possible */ if(ArcName) { - BlMemoryAllocatePool(ArcLength, (PVOID *)&LocalArcName); - RtlCopyMemory(LocalArcName, SystemPath, ArcLength); + BlMemoryAllocatePool(ArcLength * sizeof(WCHAR), (PVOID *)&LocalArcName); + RtlCopyMemory(LocalArcName, SystemPath, ArcLength * sizeof(WCHAR)); LocalArcName[ArcLength] = '\0'; *ArcName = LocalArcName; }