Commit 6ada7e01 authored by Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf

Win32: More comments to avoid removal :)

parent 5d7ac198
......@@ -148,10 +148,10 @@ DIR *vlc_opendir (const char *dirname)
return NULL;
}
/* Special mode to list drive letters */
if (wpath[0] == L'\0' || (wcscmp (wpath, L"\\") == 0))
{
free (wpath);
/* Special mode to list drive letters */
p_dir->wdir = NULL;
p_dir->u.drives = GetLogicalDrives ();
return (void *)p_dir;
......@@ -175,9 +175,9 @@ char *vlc_readdir (DIR *dir)
{
vlc_DIR *p_dir = (vlc_DIR *)dir;
/* Drive letters mode */
if (p_dir->wdir == NULL)
{
/* Drive letters mode */
DWORD drives = p_dir->u.drives;
if (drives == 0)
return NULL; /* end */
......
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