Commit c8ec9091 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: check AllocConsole() return value

parent 82a8a42a
...@@ -808,7 +808,8 @@ static void ShowConsole( void ) ...@@ -808,7 +808,8 @@ static void ShowConsole( void )
if( getenv( "PWD" ) ) return; /* Cygwin shell or Wine */ if( getenv( "PWD" ) ) return; /* Cygwin shell or Wine */
AllocConsole(); if( !AllocConsole() ) return;
/* Use the ANSI code page (e.g. Windows-1252) as expected by the LibVLC /* Use the ANSI code page (e.g. Windows-1252) as expected by the LibVLC
* Unicode/locale subsystem. By default, we have the obsolecent OEM code * Unicode/locale subsystem. By default, we have the obsolecent OEM code
* page (e.g. CP437 or CP850). */ * page (e.g. CP437 or CP850). */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment