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

2020-06-19 Thread Steve Lhomme
vlc/vlc-3.0 | branch: master | Steve Lhomme  | 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 

> 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);
 }

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits


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

2020-05-18 Thread Steve Lhomme
vlc | branch: master | Steve Lhomme  | 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));
 }

___
vlc-commits mailing list
vlc-commits@videolan.org
https://mailman.videolan.org/listinfo/vlc-commits