Commit 4f8ac0b2 authored by Geoff Voelker's avatar Geoff Voelker
Browse files

(w32_get_long_filename): Handle root dirs correctly.

parent b283f79e
......@@ -503,9 +503,10 @@ w32_get_long_filename (char * name, char * buf, int size)
len = parse_root (full, &p);
memcpy (o, full, len);
o += len;
*o = '\0';
size -= len;
do
while (p != NULL && *p)
{
q = p;
p = strchr (q, '\\');
......@@ -528,7 +529,6 @@ w32_get_long_filename (char * name, char * buf, int size)
else
return FALSE;
}
while (p != NULL && *p);
return TRUE;
}
......
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