Commit cbfba6f0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont Committed by Jean-Baptiste Kempf

Win32:use Unicode LoadLibrary

so we can install VLC in non-ANSI-named directories
(cherry picked from commit 7718f129)
Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent 189d6e7f
......@@ -180,14 +180,13 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
}
#elif defined(HAVE_DL_WINDOWS)
wchar_t psz_wfile[MAX_PATH];
MultiByteToWideChar( CP_ACP, 0, psz_file, -1, psz_wfile, MAX_PATH );
#ifdef UNDER_CE
{
wchar_t psz_wfile[MAX_PATH];
MultiByteToWideChar( CP_ACP, 0, psz_file, -1, psz_wfile, MAX_PATH );
handle = LoadLibrary( psz_wfile );
}
handle = LoadLibrary( psz_wfile );
#else
handle = LoadLibrary( psz_file );
handle = LoadLibraryW( psz_wfile );
#endif
if( handle == NULL )
{
......
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