From c83becf565eee9c5c867a2455fd203b5373ba166 Mon Sep 17 00:00:00 2001 From: Geoffroy Couprie Date: Wed, 3 Mar 2010 20:38:02 +0100 Subject: [PATCH] Win32: use ShellExecuteW instead of ShellExecuteA in the update code Fixes #3355 --- src/misc/update.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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); } -- 2.39.2