From 1e5e2e209cd42a6bf37d502bb42c76858adbd25f Mon Sep 17 00:00:00 2001 From: William McBrine Date: Tue, 15 Aug 2006 19:27:27 +0000 Subject: [PATCH] The call to VioGetConfig() is no longer needed at all (and taking it out fixes the crash I was having in ptest.exe -- similar to the fix I posted to the mailing list back in 2003); I'd better zero out the VIOMODEINFO structure for this last call to VioGetMode(), too. --- os2/pdcscrn.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/os2/pdcscrn.c b/os2/pdcscrn.c index 83c0e949..55c75ae8 100644 --- a/os2/pdcscrn.c +++ b/os2/pdcscrn.c @@ -25,7 +25,7 @@ #include #include -RCSID("$Id: pdcscrn.c,v 1.44 2006/08/13 05:36:52 wmcbrine Exp $"); +RCSID("$Id: pdcscrn.c,v 1.45 2006/08/15 19:27:27 wmcbrine Exp $"); int pdc_font; /* default font size */ @@ -158,7 +158,6 @@ int PDC_scr_open(int argc, char **argv) #ifdef EMXVIDEO int adapter; #else - VIOCONFIGINFO adapter; USHORT totchars; #endif PDC_LOG(("PDC_scr_open() - called\n")); @@ -182,7 +181,6 @@ int PDC_scr_open(int argc, char **argv) pdc_font = SP->mono ? 14 : (adapter == V_COLOR_8) ? 8 : 12; #else - VioGetConfig(0, &adapter, 0); VioGetMode(&scrnmode, 0); PDC_get_keyboard_info(); @@ -299,7 +297,7 @@ void PDC_reset_shell_mode(void) static bool screen_mode_equals(VIOMODEINFO *oldmode) { - VIOMODEINFO current; + VIOMODEINFO current = {0}; VioGetMode(¤t, 0);