Guru Kas | 16 Dec 2009 17:29
Picon

CVS: biew/biewlib/sysdep/ia32/win32 vio.c,1.5,1.6

Update of /cvsroot/biew/biew/biewlib/sysdep/ia32/win32
In directory sfp-cvsdas-2.v30.ch3.sourceforge.com:/tmp/cvs-serv14688

Modified Files:
	vio.c 
Log Message:
patch from Sergey Oblomov

Index: vio.c
===================================================================
RCS file: /cvsroot/biew/biew/biewlib/sysdep/ia32/win32/vio.c,v
retrieving revision 1.5
retrieving revision 1.6
diff -p -u -d -r1.5 -r1.6
--- vio.c	3 Sep 2009 16:57:41 -0000	1.5
+++ vio.c	16 Dec 2009 16:29:18 -0000	1.6
 <at>  <at>  -41,7 +41,14  <at>  <at>  static CONSOLE_CURSOR_INFO win32_init_cc

 void __FASTCALL__ __init_vio(const char *user_cp, unsigned long flg )
 {
+#if 0
   hOut = GetStdHandle(STD_OUTPUT_HANDLE);
+#else
+  /* Fixed redirecting of stdout into file. By Sergey Oblomov <hoopoepg <at> gmail.com> */
+  hOut = CreateFile( "CONOUT$", GENERIC_READ | GENERIC_WRITE,
+				FILE_SHARE_READ | FILE_SHARE_WRITE,
+				0, OPEN_EXISTING, 0, 0 );
+#endif
   is_winnt = win32_verinfo.dwPlatformId == VER_PLATFORM_WIN32_NT;
   vio_flags = flg;
(Continue reading)


Gmane