Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Samo Golež
VLC
Commits
987e7371
Commit
987e7371
authored
Apr 03, 2019
by
Steve Lhomme
Browse files
ntservice: don't use a temporary conversion to printf a wide char string
parent
46a04fb3
Changes
1
Hide whitespace changes
Inline
Side-by-side
modules/control/ntservice.c
View file @
987e7371
...
...
@@ -201,14 +201,7 @@ static int NTServiceInstall( intf_thread_t *p_intf )
/* Find out the filename of ourselves so we can install it to the
* service control manager */
GetModuleFileName
(
NULL
,
psz_pathtmp
,
MAX_PATH
);
psz_extra
=
FromWide
(
psz_pathtmp
);
if
(
!
psz_extra
)
{
CloseServiceHandle
(
handle
);
return
VLC_ENOMEM
;
}
vlc_memstream_printf
(
&
path_stream
,
"
\"
%s
\"
-I ntservice"
,
psz_extra
);
free
(
psz_extra
);
vlc_memstream_printf
(
&
path_stream
,
"
\"
%ls
\"
-I ntservice"
,
psz_pathtmp
);
psz_extra
=
var_InheritString
(
p_intf
,
"ntservice-extraintf"
);
if
(
psz_extra
&&
*
psz_extra
)
...
...
Write
Preview
Supports
Markdown
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