mirror of https://code.videolan.org/videolan/vlc
Merge branch 'fix-uwp-lua' into 'master'
lua: discard basedir and DIR_SEP on UWP See merge request videolan/vlc!846
This commit is contained in:
commit
d96a2b8dcc
|
@ -101,8 +101,12 @@ static char **vlclua_dir_list_append( char **restrict list, char *basedir,
|
|||
if (unlikely(basedir == NULL))
|
||||
return list;
|
||||
|
||||
#ifndef VLC_WINSTORE_APP
|
||||
if (likely(asprintf(list, "%s"DIR_SEP"lua"DIR_SEP"%s",
|
||||
basedir, luadirname) != -1))
|
||||
#else
|
||||
if (likely(asprintf(list, "lua"DIR_SEP"%s", luadirname) != -1))
|
||||
#endif
|
||||
list++;
|
||||
|
||||
free(basedir);
|
||||
|
|
Loading…
Reference in New Issue