[vlc-commits] plugin cache: Windows doesn't like relative pathes in LoadLibraryEx()

Steve Lhomme git at videolan.org
Thu Dec 13 13:11:02 CET 2018


vlc | branch: master | Steve Lhomme <robux4 at videolabs.io> | Fri Sep 30 09:49:19 2016 +0200| [3edd48f2ecac2471af0f00941b9e52948fca79e5] | committer: Steve Lhomme

plugin cache: Windows doesn't like relative pathes in LoadLibraryEx()

Fixes "vlc-cache-gen ../modules" on Windows and general VLC_PLUGIN_PATH usage.

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

 src/modules/bank.c | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/modules/bank.c b/src/modules/bank.c
index 331fdc40ca..a67c338a8b 100644
--- a/src/modules/bank.c
+++ b/src/modules/bank.c
@@ -474,7 +474,11 @@ static void AllocateAllPlugins (vlc_object_t *p_this)
     if( paths == NULL )
         return;
 
+#ifdef _WIN32
+    paths = realpath( paths, NULL );
+#else
     paths = strdup( paths ); /* don't harm the environment ! :) */
+#endif
     if( unlikely(paths == NULL) )
         return;
 



More information about the vlc-commits mailing list