[vlc-commits] commit: Win32: use ShellExecuteW instead of ShellExecuteA in the update code ( Geoffroy Couprie )
git version control
git at videolan.org
Fri Mar 5 20:36:38 CET 2010
vlc | branch: master | Geoffroy Couprie <geal at videolan.org> | Wed Mar 3 20:38:02 2010 +0100| [c83becf565eee9c5c867a2455fd203b5373ba166] | committer: Geoffroy Couprie
Win32: use ShellExecuteW instead of ShellExecuteA in the update code
Fixes #3355
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c83becf565eee9c5c867a2455fd203b5373ba166
---
src/misc/update.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diff --git a/src/misc/update.c b/src/misc/update.c
index 138f607..4225226 100644
--- a/src/misc/update.c
+++ b/src/misc/update.c
@@ -739,7 +739,9 @@ static void* update_DownloadReal( vlc_object_t *p_this )
if(answer == 1)
{
- answer = ShellExecuteA( NULL, "open", psz_destfile, NULL, NULL, SW_SHOW);
+ wchar_t psz_wdestfile[MAX_PATH];
+ MultiByteToWideChar( CP_UTF8, 0, psz_destfile, -1, psz_wdestfile, MAX_PATH );
+ answer = ShellExecuteW( NULL, L"open", psz_wdestfile, NULL, NULL, SW_SHOW);
if(answer > 32)
libvlc_Quit(p_this->p_libvlc);
}
More information about the vlc-commits
mailing list