mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-01 12:23:29 +00:00
fixed minor bug
svn path=/trunk/; revision=6902
This commit is contained in:
@@ -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))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user