Fixed a long standing (and annoying) typo, that prevented

GetDiskFreeSpaceA from working...
This commit is contained in:
Peter Schlaile 1999-11-04 01:39:59 +00:00 committed by Alexandre Julliard
parent c0bcf26d05
commit 6deeedbf66
1 changed files with 1 additions and 1 deletions

View File

@ -755,7 +755,7 @@ BOOL WINAPI GetDiskFreeSpaceA( LPCSTR root, LPDWORD cluster_sectors,
LPCSTR path;
DWORD cluster_sec;
if ((!root) || (root == "\\"))
if ((!root) || (strcmp(root,"\\") == 0))
drive = DRIVE_GetCurrentDrive();
else
if ( (strlen(root) >= 2) && (root[1] == ':')) /* root contains drive tag */