Commit 987e7371 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

ntservice: don't use a temporary conversion to printf a wide char string

parent 46a04fb3
......@@ -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 );
vlc_memstream_printf( &path_stream, "\"%ls\" -I ntservice", psz_pathtmp );
psz_extra = var_InheritString( p_intf, "ntservice-extraintf" );
if( psz_extra && *psz_extra )
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment