[vlc-commits] update: do not launch the downloaded exe in Winstore builds
Steve Lhomme
git at videolan.org
Fri Jun 19 08:25:55 CEST 2020
vlc/vlc-3.0 | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Apr 9 11:55:16 2020 +0200| [83d8e7efaa4f7dc23b07c47c59431e1f6df57da5] | 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
(cherry picked from commit 0bb6e050d43bc862a3cdda908ac57e237598be03) (rebased)
rebased:
- this branch uses p_udt->obj.libvlc for libvlc_Quit()
Signed-off-by: Steve Lhomme <robux4 at ycbcr.xyz>
> http://git.videolan.org/gitweb.cgi/vlc/vlc-3.0.git/?a=commit;h=83d8e7efaa4f7dc23b07c47c59431e1f6df57da5
---
src/misc/update.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/misc/update.c b/src/misc/update.c
index e991b930e4..6c5a231bce 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -728,9 +728,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(p_udt->obj.libvlc);
}
More information about the vlc-commits
mailing list