mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
fixed minor bug
svn path=/trunk/; revision=6902
This commit is contained in:
parent
13a5b00db7
commit
11eed94164
|
@ -16,7 +16,7 @@
|
||||||
* along with this program; if not, write to the Free Software
|
* along with this program; if not, write to the Free Software
|
||||||
* Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
|
* 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
|
* COPYRIGHT: See COPYING in the top level directory
|
||||||
* PROJECT: ReactOS kernel
|
* PROJECT: ReactOS kernel
|
||||||
|
@ -113,7 +113,7 @@ NtUserCopyAcceleratorTable(
|
||||||
|
|
||||||
if(Entries)
|
if(Entries)
|
||||||
{
|
{
|
||||||
Ret = max(EntriesCount, AcceleratorTable->Count);
|
Ret = min(EntriesCount, AcceleratorTable->Count);
|
||||||
Status = MmCopyToCaller(Entries, AcceleratorTable->Table, Ret * sizeof(ACCEL));
|
Status = MmCopyToCaller(Entries, AcceleratorTable->Table, Ret * sizeof(ACCEL));
|
||||||
if (!NT_SUCCESS(Status))
|
if (!NT_SUCCESS(Status))
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue