Commit 3edd48f2 authored by Steve Lhomme's avatar Steve Lhomme Committed by 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.
parent 6801c2d0
......@@ -474,7 +474,11 @@ static void AllocateAllPlugins (vlc_object_t *p_this)
if( paths == NULL )
#ifdef _WIN32
paths = realpath( paths, NULL );
paths = strdup( paths ); /* don't harm the environment ! :) */
if( unlikely(paths == NULL) )
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment