Index: libvlc.c
===================================================================
--- libvlc.c	(revision 12828)
+++ libvlc.c	(working copy)
@@ -2447,6 +2447,9 @@

     AllocConsole();

+    freopen( "CONOUT$", "w", stderr );
+    freopen( "CONIN$", "r", stdin );
+
     if( (f_help = fopen( "vlc-help.txt", "wt" )) )
     {
         fclose( f_help );
@@ -2456,9 +2459,6 @@

     else freopen( "CONOUT$", "w", stdout );

-    freopen( "CONOUT$", "w", stderr );
-    freopen( "CONIN$", "r", stdin );
-
#   endif
}
#endif

