Skip to content
Snippets Groups Projects
Commit 669e44e9 authored by Steve Lhomme's avatar Steve Lhomme
Browse files

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

(cherry picked from commit 987e7371)
parent abd424e6
No related branches found
No related tags found
1 merge request!6429[3.0] win32: backport some long path potential issues
......@@ -204,14 +204,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 )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment