]> git.sesse.net Git - vlc/commitdiff
don't add / if dir ="" (allows drive listing on windows)
authorRob Jonson <rob@hobbyistsoftware.com>
Wed, 28 Sep 2011 12:05:17 +0000 (13:05 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 13 Oct 2011 22:24:46 +0000 (00:24 +0200)
Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
share/lua/intf/modules/httprequests.lua

index bbef5695815854ba41be7f325daa011fda491df9..a22e833c9b057038916fa9b4b136f8fdcf2402c1 100644 (file)
@@ -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)