[vlc-commits] update: do not launch the downloaded exe in Winstore builds
Steve Lhomme
git at videolan.org
Mon May 18 16:19:13 CEST 2020
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr 9 11:55:16 2020 +0200| [0bb6e050d43bc862a3cdda908ac57e237598be03] | committer: Steve Lhomme
update: do not launch the downloaded exe in Winstore builds
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
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=0bb6e050d43bc862a3cdda908ac57e237598be03
---
src/misc/update.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/misc/update.c b/src/misc/update.c
index ac1a565bb0..a4c9349153 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));
}
More information about the vlc-commits
mailing list