[vlc-devel] commit: Win32:use Unicode LoadLibrary ( Rémi Denis-Courmont )
git version control
git at videolan.org
Tue Sep 16 22:25:13 CEST 2008
vlc | branch: master | Rémi Denis-Courmont <rdenis at simphalempin.com> | Tue Sep 16 23:20:41 2008 +0300| [7718f129a12f4b3cf778f8c29aca26e7636ca035] | committer: Rémi Denis-Courmont
Win32:use Unicode LoadLibrary
so we can install VLC in non-ANSI-named directories
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=7718f129a12f4b3cf778f8c29aca26e7636ca035
---
src/modules/os.c | 11 +++++------
1 files changed, 5 insertions(+), 6 deletions(-)
diff --git a/src/modules/os.c b/src/modules/os.c
index af70b69..17f033b 100644
--- a/src/modules/os.c
+++ b/src/modules/os.c
@@ -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 )
{
More information about the vlc-devel
mailing list