Commit ce6a3a0e authored by Rob Jonson's avatar Rob Jonson Committed by Jean-Baptiste Kempf

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

Signed-off-by: default avatarJean-Baptiste Kempf <jb@videolan.org>
parent a9c1c5e9
...@@ -353,7 +353,11 @@ getbrowsetable = function () ...@@ -353,7 +353,11 @@ getbrowsetable = function ()
if dir then if dir then
if dir == "~" then dir = vlc.misc.homedir() end if dir == "~" then dir = vlc.misc.homedir() end
-- FIXME: hack for Win32 drive list
if dir~="" then
dir = common.realpath(dir.."/") dir = common.realpath(dir.."/")
end
local d = vlc.net.opendir(dir) local d = vlc.net.opendir(dir)
table.sort(d) table.sort(d)
......
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