[vlc-commits] Atmo: use LoadLibrary instead of LoadLibraryA for a fullpath DLL

Jean-Baptiste Kempf git at videolan.org
Tue Jan 15 15:30:17 CET 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Tue Jan 15 16:29:32 2013 +0100| [b0394f4958a3911dcc25ff1a961f2ca5ad62a296] | committer: Jean-Baptiste Kempf

Atmo: use LoadLibrary instead of LoadLibraryA for a fullpath DLL

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

 modules/video_filter/atmo/atmo.cpp |    6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/modules/video_filter/atmo/atmo.cpp b/modules/video_filter/atmo/atmo.cpp
index b9bf3fb..56603aa 100644
--- a/modules/video_filter/atmo/atmo.cpp
+++ b/modules/video_filter/atmo/atmo.cpp
@@ -1599,7 +1599,7 @@ static void Atmo_SetupParameters(filter_t *p_filter)
         if(p_sys->h_AtmoCtrl == NULL)
         {
             /*
-              be clever if the location of atmowina.exe is set
+              be clever if the location of atmowin.exe is set
               try to load the dll from the same folder :-)
             */
             char *psz_path = var_CreateGetStringCommand( p_filter,
@@ -1618,7 +1618,9 @@ static void Atmo_SetupParameters(filter_t *p_filter)
                     if( psz_dllname )
                     {
                         msg_Dbg( p_filter, "Try Loading '%s'", psz_dllname );
-                        p_sys->h_AtmoCtrl = LoadLibraryA( psz_dllname );
+                        TCHAR* ptsz_dllname = ToT(psz_dllname);
+                        p_sys->h_AtmoCtrl = LoadLibrary( ptsz_dllname );
+                        free(ptsz_dllname);
                     }
                     free( psz_dllname );
                 }



More information about the vlc-commits mailing list