Commit 82a8a42a authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: disable Console output of help in WSA mode

Calling AllocConsole does not work all the time in Metro mode,
and is supposed to be an undefined behaviour.
parent 081cc1e7
......@@ -34,7 +34,7 @@
#include "config/configuration.h"
#include "libvlc.h"
#if defined( WIN32 )
#if defined( WIN32 ) && !defined(WINAPI_FAMILY_APP)
static void ShowConsole (void);
static void PauseConsole (void);
#else
......@@ -796,7 +796,7 @@ static void Version( void )
PauseConsole();
}
#if defined (WIN32)
#if defined( WIN32 ) && !defined(WINAPI_FAMILY_APP)
/*****************************************************************************
* ShowConsole: On Win32, create an output console for debug messages
*****************************************************************************
......@@ -861,7 +861,7 @@ static int ConsoleWidth( void )
i_width = 80;
pclose( file );
}
#else
#elif !defined(WINAPI_FAMILY_APP)
CONSOLE_SCREEN_BUFFER_INFO buf;
if (GetConsoleScreenBufferInfo (GetStdHandle (STD_OUTPUT_HANDLE), &buf))
......
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