From 11eed94164d1a6706eb57c85895992aa91ec387d Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sun, 7 Dec 2003 17:22:13 +0000 Subject: [PATCH] fixed minor bug svn path=/trunk/; revision=6902 --- reactos/subsys/win32k/ntuser/accelerator.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/reactos/subsys/win32k/ntuser/accelerator.c b/reactos/subsys/win32k/ntuser/accelerator.c index 6d2c96629fc..3007a388633 100644 --- a/reactos/subsys/win32k/ntuser/accelerator.c +++ b/reactos/subsys/win32k/ntuser/accelerator.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: accelerator.c,v 1.3 2003/12/07 16:54:44 chorns Exp $ +/* $Id: accelerator.c,v 1.4 2003/12/07 17:22:13 weiden Exp $ * * COPYRIGHT: See COPYING in the top level directory * PROJECT: ReactOS kernel @@ -113,7 +113,7 @@ NtUserCopyAcceleratorTable( if(Entries) { - Ret = max(EntriesCount, AcceleratorTable->Count); + Ret = min(EntriesCount, AcceleratorTable->Count); Status = MmCopyToCaller(Entries, AcceleratorTable->Table, Ret * sizeof(ACCEL)); if (!NT_SUCCESS(Status)) {