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:
Johannes Kauffmann 2024-04-28 07:11:06 +00:00
commit d96a2b8dcc
1 changed files with 4 additions and 0 deletions

View File

@ -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);