mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
Fixed a wrong pointer calculation in RtlpCopyParameterString().
svn path=/trunk/; revision=2711
This commit is contained in:
parent
dd9ae3aba1
commit
b53f18ea54
1 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue