Commit 7718f129 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Win32:use Unicode LoadLibrary

so we can install VLC in non-ANSI-named directories
parent a921f15e
......@@ -180,14 +180,13 @@ int module_Load( vlc_object_t *p_this, const char *psz_file,
}
#elif defined(HAVE_DL_WINDOWS)
#ifdef UNDER_CE
{
wchar_t psz_wfile[MAX_PATH];
MultiByteToWideChar( CP_ACP, 0, psz_file, -1, psz_wfile, MAX_PATH );
#ifdef UNDER_CE
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