mirror of
https://github.com/reactos/reactos.git
synced 2024-08-07 19:58:21 +00:00
Don't increment loop variable inside the loop too. Spotted by Mark IJbema.
svn path=/trunk/; revision=7993
This commit is contained in:
parent
a21e7f7e43
commit
90fd161f1e
|
@ -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.7 2003/12/29 23:28:46 sedwards Exp $
|
||||
/* $Id: accelerator.c,v 1.8 2004/02/02 15:16:53 gvg Exp $
|
||||
*
|
||||
* COPYRIGHT: See COPYING in the top level directory
|
||||
* PROJECT: ReactOS kernel
|
||||
|
@ -516,7 +516,7 @@ NtUserTranslateAccelerator(
|
|||
AcceleratorTable->Table[i].cmd))
|
||||
{
|
||||
ObDereferenceObject(WindowStation);
|
||||
DPRINT1("NtUserTranslateAccelerator(Window %x, Table %x, Message %p) = %i end\n",
|
||||
DPRINT("NtUserTranslateAccelerator(Window %x, Table %x, Message %p) = %i end\n",
|
||||
Window, Table, Message, 1);
|
||||
return 1;
|
||||
}
|
||||
|
@ -524,7 +524,6 @@ NtUserTranslateAccelerator(
|
|||
{
|
||||
break;
|
||||
}
|
||||
i++;
|
||||
}
|
||||
|
||||
ObDereferenceObject(WindowStation);
|
||||
|
|
Loading…
Reference in a new issue