viocalls: Actually, VioGetMode() needs to initialize ncurses.

It needs the screen size, etc.

Now that 23e344a212 fixes unloading the
VIOCALLS module, we can tolerate this better.
This commit is contained in:
Ryan C. Gordon committed 2022-01-31 11:39:58 -05:00
1 parent 23e344a212
commit 1ca194f39b
1 file changed
+3 -3
+3 -3
View File
@@ -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);