From 0bdd21187300715d6cfdce216edddc4af6bb4ec3 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Mon, 1 Apr 2002 22:11:52 +0000 Subject: [PATCH] Fixed the length calculation in RtlCreateProcessParameters(). svn path=/trunk/; revision=2813 --- reactos/lib/ntdll/rtl/ppb.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/reactos/lib/ntdll/rtl/ppb.c b/reactos/lib/ntdll/rtl/ppb.c index 758ef9248ca..a1c483e95cf 100644 --- a/reactos/lib/ntdll/rtl/ppb.c +++ b/reactos/lib/ntdll/rtl/ppb.c @@ -1,4 +1,4 @@ -/* $Id: ppb.c,v 1.11 2002/03/14 16:32:49 hbirr Exp $ +/* $Id: ppb.c,v 1.12 2002/04/01 22:11:52 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS system libraries @@ -132,8 +132,8 @@ RtlCreateProcessParameters(PRTL_USER_PROCESS_PARAMETERS *ProcessParameters, /* add string lengths */ Length += ALIGN(DllPath->MaximumLength, sizeof(ULONG)); - Length += ALIGN(ImagePathName->Length, sizeof(ULONG)); - Length += ALIGN(CommandLine->Length, sizeof(ULONG)); + Length += ALIGN(ImagePathName->Length + sizeof(WCHAR), sizeof(ULONG)); + Length += ALIGN(CommandLine->Length + sizeof(WCHAR), sizeof(ULONG)); Length += ALIGN(WindowTitle->MaximumLength, sizeof(ULONG)); Length += ALIGN(DesktopInfo->MaximumLength, sizeof(ULONG)); Length += ALIGN(ShellInfo->MaximumLength, sizeof(ULONG));