From 08be7d88cc81eb7676303d508744f4a8ecdea081 Mon Sep 17 00:00:00 2001 From: Hartmut Birr Date: Fri, 15 Aug 2003 10:17:09 +0000 Subject: [PATCH] - Fixed the allocated size for the KernelCallbackTable. svn path=/trunk/; revision=5579 --- reactos/lib/ntdll/ldr/startup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/lib/ntdll/ldr/startup.c b/reactos/lib/ntdll/ldr/startup.c index 9cd02b467d7..d77a583c59b 100644 --- a/reactos/lib/ntdll/ldr/startup.c +++ b/reactos/lib/ntdll/ldr/startup.c @@ -1,4 +1,4 @@ -/* $Id: startup.c,v 1.52 2003/05/21 16:10:12 ekohl Exp $ +/* $Id: startup.c,v 1.53 2003/08/15 10:17:09 hbirr Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -151,7 +151,7 @@ __true_LdrInitializeThunk (ULONG Unknown1, Peb->KernelCallbackTable = RtlAllocateHeap(RtlGetProcessHeap(), 0, - sizeof(PVOID) * USER32_CALLBACK_MAXIMUM); + sizeof(PVOID) * (USER32_CALLBACK_MAXIMUM + 1)); /* initalize loader lock */ RtlInitializeCriticalSection (&LoaderLock);