Commit c83becf5 authored by Geoffroy Couprie's avatar Geoffroy Couprie

Win32: use ShellExecuteW instead of ShellExecuteA in the update code

Fixes #3355
parent 0704d00f
......@@ -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);
}
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment