[vlc-devel] [PATCH] update: do not launch the downloaded exe in Winstore builds

Jean-Baptiste Kempf jb at videolan.org
Thu Apr 9 12:25:43 CEST 2020


OK

On Thu, Apr 9, 2020, at 11:56, Steve Lhomme wrote:
> The API is forbidden.
> 
> It could be done with this winrt API:
> https://docs.microsoft.com/en-us/windows/uwp/launch-resume/launch-the-default-app-for-a-file
> ---
>  src/misc/update.c | 2 ++
>  1 file changed, 2 insertions(+)
> 
> diff --git a/src/misc/update.c b/src/misc/update.c
> index ac1a565bb01..a4c9349153a 100644
> --- a/src/misc/update.c
> +++ b/src/misc/update.c
> @@ -725,9 +725,11 @@ static void* update_DownloadReal( void *obj )
>                                             psz_msg );
>      if(answer == 1)
>      {
> +#ifndef VLC_WINSTORE_APP
>          wchar_t psz_wdestfile[MAX_PATH];
>          MultiByteToWideChar( CP_UTF8, 0, psz_destfile, -1, 
> psz_wdestfile, MAX_PATH );
>          answer = (int)ShellExecuteW( NULL, L"open", psz_wdestfile, 
> NULL, NULL, SW_SHOW);
> +#endif
>          if(answer > 32)
>              libvlc_Quit(vlc_object_instance(p_udt));
>      }
> -- 
> 2.17.1
> 
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

-- 
Jean-Baptiste Kempf -  President
+33 672 704 734


More information about the vlc-devel mailing list