X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=sidebyside;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fvideo.c;h=a30dd3770e3147faa73801a8ef1e627c21f6f15e;hb=bf0187772ecfb475eedf5e0e9b8460b4f1a3f445;hp=1b9ffaba96956ec76026764e9acda1683c665672;hpb=b0da731b2d89b9dd58de2c98eaf6218a41a21920;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/video.c b/Usermode/Applications/axwin3_src/WM/video.c index 1b9ffaba..a30dd377 100644 --- a/Usermode/Applications/axwin3_src/WM/video.c +++ b/Usermode/Applications/axwin3_src/WM/video.c @@ -49,9 +49,10 @@ void Video_Setup(void) giTerminalFD_Input = 0; // Check that the console is a VT // - _SysIOCtl(..., 0, NULL) returns the type, which should be 2 - if( _SysIOCtl(1, 0, NULL) != 2 ) + tmpInt = _SysIOCtl(1, 0, NULL); + if( tmpInt != 2 ) { - fprintf(stderr, "stdout is not an Acess VT, can't start"); + fprintf(stderr, "stdout is not an Acess VT, can't start (2 exp, %i got)\n", tmpInt); _SysDebug("stdout is not an Acess VT, can't start"); exit(-1); }