]> git.sesse.net Git - vlc/commitdiff
Fixed globalhotkeys compilation with old xcb version.
authorLaurent Aimar <fenrir@videolan.org>
Wed, 7 Oct 2009 19:32:27 +0000 (21:32 +0200)
committerLaurent Aimar <fenrir@videolan.org>
Thu, 8 Oct 2009 19:56:22 +0000 (21:56 +0200)
modules/control/globalhotkeys/xcb.c

index c4da0230f600be5b6918567f1da79422ab2d657a..d654c64838e6d0687f085a24a13458136eba1d5b 100644 (file)
@@ -185,6 +185,7 @@ static unsigned GetModifier( xcb_connection_t *p_connection, xcb_key_symbols_t *
 #ifdef XCB_KEYSYM_OLD_API /* as seen in Debian Lenny */
     const xcb_keycode_t key = xcb_key_symbols_get_keycode( p_symbols, sym );
     if( key == 0 )
+        return 0;
 #else
     const xcb_keycode_t *p_keys = xcb_key_symbols_get_keycode( p_symbols, sym );
     if( !p_keys )