Commit d6bd2822 authored by Gerard Patel's avatar Gerard Patel Committed by Alexandre Julliard

GetDiskFreeSpaceEx should accept an input like "C:".

parent c73316db
......@@ -1110,8 +1110,8 @@ BOOL WINAPI GetDiskFreeSpaceExA( LPCSTR root,
if (!root) drive = DRIVE_GetCurrentDrive();
else
{
if ((root[1]) && ((root[1] != ':') || (root[2] != '\\')))
{ /* C: always works for GetDiskFreeSpaceEx */
if ((root[1]) && ((root[1] != ':') || (root[2] && root[2] != '\\')))
{
FIXME("there are valid root names which are not supported yet\n");
/* ..like UNC names, for instance. */
......
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