mirror of
https://github.com/reactos/reactos.git
synced 2024-07-01 02:10:07 +00:00
[CONSRV] Fix a corruption of the CONSRV memory when converting read input events back to ANSI.
This fixes a 6-year old copy-paste bug introduced by commit b47d51c6
(r64004).
This commit is contained in:
parent
7babd93107
commit
e8df1a38bd
|
@ -564,9 +564,10 @@ ReadInputBuffer(IN PGET_INPUT_INFO InputInfo,
|
||||||
/* Now translate everything to ANSI */
|
/* Now translate everything to ANSI */
|
||||||
if (!GetInputRequest->Unicode)
|
if (!GetInputRequest->Unicode)
|
||||||
{
|
{
|
||||||
for (; NumEventsRead > 0; --NumEventsRead)
|
ULONG i;
|
||||||
|
for (i = 0; i < NumEventsRead; ++i)
|
||||||
{
|
{
|
||||||
ConioInputEventToAnsi(InputBuffer->Header.Console, --InputRecord);
|
ConioInputEventToAnsi(InputBuffer->Header.Console, &InputRecord[i]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue