Skip to content
Snippets Groups Projects
Commit ce6a3a0e authored by ConfusedVorlon's avatar ConfusedVorlon Committed by Jean-Baptiste Kempf
Browse files

don't add / if dir ="" (allows drive listing on windows)


Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a9c1c5e9
No related branches found
No related tags found
No related merge requests found
......@@ -353,7 +353,11 @@ getbrowsetable = function ()
if dir then
if dir == "~" then dir = vlc.misc.homedir() end
dir = common.realpath(dir.."/")
-- FIXME: hack for Win32 drive list
if dir~="" then
dir = common.realpath(dir.."/")
end
local d = vlc.net.opendir(dir)
table.sort(d)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment