GetDiskFreeSpaceEx should accept an input like "C:".
This commit is contained in:
parent
c73316db5b
commit
d6bd28222e
@ -1110,8 +1110,8 @@ BOOL WINAPI GetDiskFreeSpaceExA( LPCSTR root,
|
|||||||
|
|
||||||
if (!root) drive = DRIVE_GetCurrentDrive();
|
if (!root) drive = DRIVE_GetCurrentDrive();
|
||||||
else
|
else
|
||||||
{
|
{ /* C: always works for GetDiskFreeSpaceEx */
|
||||||
if ((root[1]) && ((root[1] != ':') || (root[2] != '\\')))
|
if ((root[1]) && ((root[1] != ':') || (root[2] && root[2] != '\\')))
|
||||||
{
|
{
|
||||||
FIXME("there are valid root names which are not supported yet\n");
|
FIXME("there are valid root names which are not supported yet\n");
|
||||||
/* ..like UNC names, for instance. */
|
/* ..like UNC names, for instance. */
|
||||||
|
Loading…
x
Reference in New Issue
Block a user