From: Geoffroy Couprie Date: Wed, 3 Mar 2010 19:38:02 +0000 (+0100) Subject: Win32: use ShellExecuteW instead of ShellExecuteA in the update code X-Git-Tag: 1.1.0-pre1~493 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=c83becf565eee9c5c867a2455fd203b5373ba166;p=vlc Win32: use ShellExecuteW instead of ShellExecuteA in the update code Fixes #3355 --- diff --git a/src/misc/update.c b/src/misc/update.c index 138f60792d..4225226505 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); }