GetDiskFreeSpaceEx should accept an input like "C:".

This commit is contained in:
Gerard Patel 2001-10-08 22:15:39 +00:00 committed by Alexandre Julliard
parent c73316db5b
commit d6bd28222e

View file

@ -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. */