]> git.sesse.net Git - vlc/blobdiff - modules/control/ntservice.c
Use var_Inherit* instead of var_CreateGet*.
[vlc] / modules / control / ntservice.c
index d1f1058f832c0c8dd2916850a7fb71e082ec5973..c36adefcfc41aee18fa14cc1687408b74fabc7c4 100644 (file)
@@ -138,13 +138,13 @@ static void Run( intf_thread_t *p_intf )
     p_intf->p_sys->psz_service = p_intf->p_sys->psz_service ?
         p_intf->p_sys->psz_service : strdup(VLCSERVICENAME);
 
-    if( var_InheritInteger( p_intf, "ntservice-install" ) )
+    if( var_InheritBool( p_intf, "ntservice-install" ) )
     {
         NTServiceInstall( p_intf );
         return;
     }
 
-    if( var_InheritInteger( p_intf, "ntservice-uninstall" ) )
+    if( var_InheritBool( p_intf, "ntservice-uninstall" ) )
     {
         NTServiceUninstall( p_intf );
         return;