Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc
Commits
4b9bc90d
Commit
4b9bc90d
authored
Dec 30, 2009
by
Rémi Denis-Courmont
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
NT service: use var_Inherit
parent
224be7ea
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
10 deletions
+10
-10
modules/control/ntservice.c
modules/control/ntservice.c
+10
-10
No files found.
modules/control/ntservice.c
View file @
4b9bc90d
...
...
@@ -134,17 +134,17 @@ static void Run( intf_thread_t *p_intf )
int
canc
=
vlc_savecancel
();
p_global_intf
=
p_intf
;
p_intf
->
p_sys
=
&
sys
;
p_intf
->
p_sys
->
psz_service
=
config_GetPsz
(
p_intf
,
"ntservice-name"
);
p_intf
->
p_sys
->
psz_service
=
var_InheritString
(
p_intf
,
"ntservice-name"
);
p_intf
->
p_sys
->
psz_service
=
p_intf
->
p_sys
->
psz_service
?
p_intf
->
p_sys
->
psz_service
:
strdup
(
VLCSERVICENAME
);
if
(
config_GetInt
(
p_intf
,
"ntservice-install"
)
)
if
(
var_InheritInteger
(
p_intf
,
"ntservice-install"
)
)
{
NTServiceInstall
(
p_intf
);
return
;
}
if
(
config_GetInt
(
p_intf
,
"ntservice-uninstall"
)
)
if
(
var_InheritInteger
(
p_intf
,
"ntservice-uninstall"
)
)
{
NTServiceUninstall
(
p_intf
);
return
;
...
...
@@ -182,21 +182,21 @@ static int NTServiceInstall( intf_thread_t *p_intf )
GetModuleFileName
(
NULL
,
psz_pathtmp
,
MAX_PATH
);
sprintf
(
psz_path
,
"
\"
%s
\"
-I "
MODULE_STRING
,
psz_pathtmp
);
psz_extra
=
config_GetPsz
(
p_intf
,
"ntservice-extraintf"
);
if
(
psz_extra
&&
*
psz_extra
)
psz_extra
=
var_InheritString
(
p_intf
,
"ntservice-extraintf"
);
if
(
psz_extra
)
{
strcat
(
psz_path
,
" --ntservice-extraintf "
);
strcat
(
psz_path
,
psz_extra
);
}
free
(
psz_extra
);
free
(
psz_extra
);
}
psz_extra
=
config_GetPsz
(
p_intf
,
"ntservice-options"
);
psz_extra
=
var_InheritString
(
p_intf
,
"ntservice-options"
);
if
(
psz_extra
&&
*
psz_extra
)
{
strcat
(
psz_path
,
" "
);
strcat
(
psz_path
,
psz_extra
);
free
(
psz_extra
);
}
free
(
psz_extra
);
SC_HANDLE
service
=
CreateService
(
handle
,
p_sys
->
psz_service
,
p_sys
->
psz_service
,
...
...
@@ -293,7 +293,7 @@ static void WINAPI ServiceDispatch( DWORD numArgs, char **args )
/*
* Load background interfaces
*/
psz_modules
=
config_GetPsz
(
p_intf
,
"ntservice-extraintf"
);
psz_modules
=
var_InheritString
(
p_intf
,
"ntservice-extraintf"
);
psz_parser
=
psz_modules
;
while
(
psz_parser
&&
*
psz_parser
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment