From b53f18ea54a13d690be4521c1bf900c11d9a3e7f Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Thu, 14 Mar 2002 16:32:49 +0000 Subject: [PATCH] Fixed a wrong pointer calculation in RtlpCopyParameterString(). svn path=/trunk/; revision=2711 --- reactos/lib/ntdll/rtl/ppb.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/ntdll/rtl/ppb.c b/reactos/lib/ntdll/rtl/ppb.c index 05f546cf503..758ef9248ca 100644 --- a/reactos/lib/ntdll/rtl/ppb.c +++ b/reactos/lib/ntdll/rtl/ppb.c @@ -1,4 +1,4 @@ -/* $Id: ppb.c,v 1.10 2001/08/07 14:10:41 ekohl Exp $ +/* $Id: ppb.c,v 1.11 2002/03/14 16:32:49 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -56,7 +56,7 @@ RtlpCopyParameterString(PWCHAR *Ptr, if (Source->Length) memmove (Destination->Buffer, Source->Buffer, Source->Length); Destination->Buffer[Destination->Length / sizeof(WCHAR)] = 0; - *Ptr += Destination->MaximumLength; + *Ptr += Destination->MaximumLength/sizeof(WCHAR); }