Skip to content

Commit

Permalink
viocalls: Actually, VioGetMode() needs to initialize ncurses.
Browse files Browse the repository at this point in the history
It needs the screen size, etc.

Now that 23e344a fixes unloading the
VIOCALLS module, we can tolerate this better.
  • Loading branch information
icculus committed Jan 31, 2022
1 parent 23e344a commit 1ca194f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions native/viocalls.c
Expand Up @@ -210,9 +210,9 @@ APIRET16 VioGetMode(PVIOMODEINFO pvioModeInfo, HVIO hvio)
else if (pvioModeInfo->cb != sizeof (*pvioModeInfo))
return ERROR_VIO_INVALID_LENGTH;

FIXME("might need to init ncurses at some point, but not yet.");
//else if (!initNcurses())
// return ERROR_VIO_INVALID_HANDLE;
//FIXME("might need to init ncurses at some point, but not yet.");
else if (!initNcurses())
return ERROR_VIO_INVALID_HANDLE;

memset(pvioModeInfo, '\0', sizeof (*pvioModeInfo));
pvioModeInfo->cb = sizeof (*pvioModeInfo);
Expand Down

0 comments on commit 1ca194f

Please sign in to comment.