[vlc-commits] CrystalHD: fix compilation behaviour with UNICODE

Jean-Baptiste Kempf git at videolan.org
Mon Jan 14 17:28:35 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Mon Jan 14 18:20:40 2013 +0100| [c7f288f810e74fbe4b5b7c92027885b9a1a64bfa] | committer: Jean-Baptiste Kempf

CrystalHD: fix compilation behaviour with UNICODE

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=c7f288f810e74fbe4b5b7c92027885b9a1a64bfa
---

 modules/codec/crystalhd.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/modules/codec/crystalhd.c b/modules/codec/crystalhd.c
index e48876a..3c838c4 100644
--- a/modules/codec/crystalhd.c
+++ b/modules/codec/crystalhd.c
@@ -200,7 +200,7 @@ static int OpenDecoder( vlc_object_t *p_this )
     };
     for( int i = 0; i < PATHS_NB; i++ )
     {
-        HINSTANCE p_bcm_dll = LoadLibrary( psz_paths[i] );
+        HINSTANCE p_bcm_dll = LoadLibraryA( psz_paths[i] );
         if( p_bcm_dll )
         {
             p_sys->p_bcm_dll = p_bcm_dll;
@@ -214,7 +214,7 @@ static int OpenDecoder( vlc_object_t *p_this )
     }
 
 #define LOAD_SYM( a ) \
-    BC_FUNC( a )  = (void *)GetProcAddress( p_sys->p_bcm_dll, TEXT( #a ) ); \
+    BC_FUNC( a )  = (void *)GetProcAddress( p_sys->p_bcm_dll, ( #a ) ); \
     if( !BC_FUNC( a ) ) { \
         msg_Err( p_dec, "missing symbol " # a ); return VLC_EGENERIC; }
 



More information about the vlc-commits mailing list