Fixed a long standing (and annoying) typo, that prevented
GetDiskFreeSpaceA from working...
This commit is contained in:
parent
c0bcf26d05
commit
6deeedbf66
|
@ -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 */
|
||||
|
|
Loading…
Reference in New Issue