mirror of
https://github.com/reactos/reactos.git
synced 2024-12-28 01:55:19 +00:00
fixed minor bug
svn path=/trunk/; revision=6902
This commit is contained in:
parent
13a5b00db7
commit
11eed94164
1 changed files with 2 additions and 2 deletions
|
@ -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))
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue