From 1ca194f39b6322d5c6cc1006616ed6a62f74c193 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Mon, 31 Jan 2022 11:39:58 -0500 Subject: [PATCH] viocalls: Actually, VioGetMode() needs to initialize ncurses. It needs the screen size, etc. Now that 23e344a2129ffd8c5db2bae71ed791a2b0613d6f fixes unloading the VIOCALLS module, we can tolerate this better. --- native/viocalls.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/native/viocalls.c b/native/viocalls.c index 8b424a8..af183bb 100644 --- a/native/viocalls.c +++ b/native/viocalls.c @@ -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);