[vlc-commits] WinRT: do not use GetLogicalDrives

Jean-Baptiste Kempf git at videolan.org
Fri Aug 16 11:52:11 CEST 2013


vlc | branch: master | Jean-Baptiste Kempf <jb at videolan.org> | Fri Aug 16 11:51:44 2013 +0200| [580355951d6b42006c6e3e0cd4dc704e7d1d192e] | committer: Jean-Baptiste Kempf

WinRT: do not use GetLogicalDrives

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=580355951d6b42006c6e3e0cd4dc704e7d1d192e
---

 src/win32/filesystem.c |    4 ++++
 1 file changed, 4 insertions(+)

diff --git a/src/win32/filesystem.c b/src/win32/filesystem.c
index dc1afd0..a82bb73 100644
--- a/src/win32/filesystem.c
+++ b/src/win32/filesystem.c
@@ -148,6 +148,7 @@ DIR *vlc_opendir (const char *dirname)
         return NULL;
     }
 
+#if !VLC_WINSTORE_APP
     /* Special mode to list drive letters */
     if (wpath[0] == L'\0' || (wcscmp (wpath, L"\\") == 0))
     {
@@ -156,6 +157,7 @@ DIR *vlc_opendir (const char *dirname)
         p_dir->u.drives = GetLogicalDrives ();
         return (void *)p_dir;
     }
+#endif
 
     assert (wpath[0]); // wpath[1] is defined
     p_dir->u.insert_dot_dot = !wcscmp (wpath + 1, L":\\");
@@ -175,6 +177,7 @@ char *vlc_readdir (DIR *dir)
 {
     vlc_DIR *p_dir = (vlc_DIR *)dir;
 
+#if !VLC_WINSTORE_APP
     /* Drive letters mode */
     if (p_dir->wdir == NULL)
     {
@@ -193,6 +196,7 @@ char *vlc_readdir (DIR *dir)
             return NULL;
         return ret;
     }
+#endif
 
     if (p_dir->u.insert_dot_dot)
     {



More information about the vlc-commits mailing list