Commit 6deeedbf authored by Peter Schlaile's avatar Peter Schlaile Committed by Alexandre Julliard

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

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