[vlc-commits] win32: use LoadLibrary() instead of LoadLibraryA()

Rémi Denis-Courmont git at videolan.org
Wed Nov 23 22:58:17 CET 2016


vlc | branch: master | Rémi Denis-Courmont <remi at remlab.net> | Wed Nov 23 23:56:02 2016 +0200| [9f110ac14c4cfd19b340fa7ecbf83bb106298de0] | committer: Rémi Denis-Courmont

win32: use LoadLibrary() instead of LoadLibraryA()

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

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

diff --git a/modules/codec/crystalhd.c b/modules/codec/crystalhd.c
index f64f082..f0c1587 100644
--- a/modules/codec/crystalhd.c
+++ b/modules/codec/crystalhd.c
@@ -193,14 +193,14 @@ static int OpenDecoder( vlc_object_t *p_this )
 #ifdef USE_DL_OPENING
 #  define DLL_NAME "bcmDIL.dll"
 #  define PATHS_NB 3
-    static const char *psz_paths[PATHS_NB] = {
-    DLL_NAME,
-    "C:\\Program Files\\Broadcom\\Broadcom CrystalHD Decoder\\" DLL_NAME,
-    "C:\\Program Files (x86)\\Broadcom\\Broadcom CrystalHD Decoder\\" DLL_NAME,
+    static const TCHAR *psz_paths[PATHS_NB] = {
+        TEXT(DLL_NAME),
+        TEXT("C:\\Program Files\\Broadcom\\Broadcom CrystalHD Decoder\\" DLL_NAME),
+        TEXT("C:\\Program Files (x86)\\Broadcom\\Broadcom CrystalHD Decoder\\" DLL_NAME),
     };
     for( int i = 0; i < PATHS_NB; i++ )
     {
-        HINSTANCE p_bcm_dll = LoadLibraryA( psz_paths[i] );
+        HINSTANCE p_bcm_dll = LoadLibrary( psz_paths[i] );
         if( p_bcm_dll )
         {
             p_sys->p_bcm_dll = p_bcm_dll;



More information about the vlc-commits mailing list