Skip to content

Commit

Permalink
WIP
Browse files Browse the repository at this point in the history
  • Loading branch information
JakeWharton committed Jan 29, 2025
1 parent 346d2c7 commit c772932
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions mosaic-terminal/src/c/mosaic-stdin-windows.c
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ stdinRead platformInput_readWithTimeout(

if (likely(waitResult == WAIT_OBJECT_0)) {
DWORD recordsRead = 0;
if (unlikely(!ReadConsoleInput(reader->waitHandles[0], records, recordsCount, &recordsRead))) {
if (unlikely(!ReadConsoleInput(reader->waitHandles[0], reader->records, recordsCount, &recordsRead))) {
goto err;
}

Expand All @@ -95,7 +95,7 @@ stdinRead platformInput_readWithTimeout(
platformEventHandler *handler = reader->handler;
int nextBufferIndex = 0;
for (int i = 0; i < (int) recordsRead; i++) {
INPUT_RECORD record = records[i];
INPUT_RECORD record = reader->records[i];
if (record.EventType == KEY_EVENT) {
if (record.Event.KeyEvent.wVirtualKeyCode == 0) {
buffer[nextBufferIndex++] = record.Event.KeyEvent.uChar.AsciiChar;
Expand Down

0 comments on commit c772932

Please sign in to comment.