From 0ec4b3e636d3f59f23dd3e211968b92c99498594 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Sun, 14 Sep 2003 09:03:53 +0000 Subject: [PATCH] - Fixed the length for the allocated buffer in IntGetClassName. svn path=/trunk/; revision=6066 --- reactos/subsys/win32k/ntuser/class.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/class.c b/reactos/subsys/win32k/ntuser/class.c index 81f3897eb16..f2ad6efdb4d 100644 --- a/reactos/subsys/win32k/ntuser/class.c +++ b/reactos/subsys/win32k/ntuser/class.c @@ -16,7 +16,7 @@ * along with this program; if not, write to the Free Software * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ -/* $Id: class.c,v 1.35 2003/08/19 23:41:20 weiden Exp $ +/* $Id: class.c,v 1.36 2003/09/14 09:03:53 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -229,7 +229,7 @@ IntGetClassName(struct _WINDOW_OBJECT *WindowObject, } length = 0; Status = RtlQueryAtomInAtomTable(WinStaObject->AtomTable,(RTL_ATOM)(size_t)WindowObject->Class->lpszClassName,NULL,NULL,name,&length); - name = ExAllocatePool(PagedPool,length+1); + name = ExAllocatePool(PagedPool,length+sizeof(WCHAR)); free = TRUE; Status = RtlQueryAtomInAtomTable(WinStaObject->AtomTable,(RTL_ATOM)(size_t)WindowObject->Class->lpszClassName,NULL,NULL,name,&length); if (!NT_SUCCESS(Status))