[vlc-commits] main_interface: Don't silently ignore failure to register a message

Hugo Beauzée-Luyssen git at videolan.org
Wed Dec 28 22:11:31 CET 2016


vlc/vlc-2.2 | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Wed Dec 28 16:42:20 2016 +0100| [248afeb6e6943ac9fde7cd9282c3e8c70b6a9449] | committer: Jean-Baptiste Kempf

main_interface: Don't silently ignore failure to register a message

(cherry picked from commit 691dbca5616b9140e7f5f3907c389dba90f55686)
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>

> http://git.videolan.org/gitweb.cgi/vlc/vlc-2.2.git/?a=commit;h=248afeb6e6943ac9fde7cd9282c3e8c70b6a9449
---

 modules/gui/qt4/main_interface.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/modules/gui/qt4/main_interface.cpp b/modules/gui/qt4/main_interface.cpp
index 10efc01..aeadbca 100644
--- a/modules/gui/qt4/main_interface.cpp
+++ b/modules/gui/qt4/main_interface.cpp
@@ -175,6 +175,8 @@ MainInterface::MainInterface( intf_thread_t *_p_intf ) : QVLCMW( _p_intf )
     himl = NULL;
     p_taskbl = NULL;
     taskbar_wmsg = RegisterWindowMessage(TEXT("TaskbarButtonCreated"));
+    if (taskbar_wmsg == 0)
+        msg_Warn( p_intf, "Failed to register TaskbarButtonCreated message" );
 #endif
 
     /*********************************



More information about the vlc-commits mailing list