]> git.sesse.net Git - vlc/commitdiff
msw ShowConsole() - enable previously provided msg on console for --help file output.
authorScott Caudle <zcot@videolan.org>
Sat, 22 Oct 2005 18:20:45 +0000 (18:20 +0000)
committerScott Caudle <zcot@videolan.org>
Sat, 22 Oct 2005 18:20:45 +0000 (18:20 +0000)
src/libvlc.c

index 85046e2e8dd6d452ee63534060b34db4ac98f3f3..20fafaadb10058ff5bdc6f744b580e273ac1d45a 100644 (file)
@@ -2447,6 +2447,9 @@ static void ShowConsole( void )
 
     AllocConsole();
 
+    freopen( "CONOUT$", "w", stderr );
+    freopen( "CONIN$", "r", stdin );
+
     if( (f_help = fopen( "vlc-help.txt", "wt" )) )
     {
         fclose( f_help );
@@ -2456,9 +2459,6 @@ static void ShowConsole( void )
 
     else freopen( "CONOUT$", "w", stdout );
 
-    freopen( "CONOUT$", "w", stderr );
-    freopen( "CONIN$", "r", stdin );
-
 #   endif
 }
 #endif