From 3c6db86cf6fd44aeaeca523559e2221f8c75d3a7 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?R=C3=A9mi=20Denis-Courmont?= <remi@remlab.net>
Date: Mon, 2 Mar 2015 22:37:53 +0200
Subject: [PATCH] oldrc: only invoke console intro message where applicable

---
 modules/control/dummy.c | 4 ++--
 modules/control/rc.c    | 6 +++---
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/modules/control/dummy.c b/modules/control/dummy.c
index 4300555b07b3..c0bc3cd6ec29 100644
--- a/modules/control/dummy.c
+++ b/modules/control/dummy.c
@@ -49,7 +49,7 @@ vlc_module_begin ()
     set_description( N_("Dummy interface") )
     set_capability( "interface", 0 )
     set_callbacks( Open, NULL )
-#ifdef _WIN32
+#if defined(_WIN32) && !VLC_WINSTORE_APP
     add_bool( "dummy-quiet", false, QUIET_TEXT, QUIET_LONGTEXT, false )
 #endif
 vlc_module_end ()
@@ -61,7 +61,7 @@ static int Open( vlc_object_t *p_this )
 {
     intf_thread_t *p_intf = (intf_thread_t*) p_this;
 
-#ifdef _WIN32
+#if defined(_WIN32) && !VLC_WINSTORE_APP
     bool b_quiet;
     b_quiet = var_InheritBool( p_intf, "dummy-quiet" );
     if( !b_quiet )
diff --git a/modules/control/rc.c b/modules/control/rc.c
index ca2b4a19b2a3..d3c8673a402e 100644
--- a/modules/control/rc.c
+++ b/modules/control/rc.c
@@ -340,11 +340,11 @@ static int Activate( vlc_object_t *p_this )
 
 #ifdef _WIN32
     p_sys->b_quiet = var_InheritBool( p_intf, "rc-quiet" );
+# if !VLC_WINSTORE_APP
     if( !p_sys->b_quiet )
-#endif
-    {
         CONSOLE_INTRO_MSG;
-    }
+# endif
+#endif
 
     if( vlc_clone( &p_sys->thread, Run, p_intf, VLC_THREAD_PRIORITY_LOW ) )
         abort();
-- 
GitLab