mirror of
https://github.com/reactos/reactos.git
synced 2025-08-04 14:56:58 +00:00
Last 4 parameters of GetDiskFreeSpaceW are optional.
Fix bug 1608. svn path=/trunk/; revision=22509
This commit is contained in:
parent
2e30a9b979
commit
26836826ef
1 changed files with 8 additions and 4 deletions
|
@ -256,9 +256,13 @@ GetDiskFreeSpaceW(
|
||||||
return FALSE;
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
*lpBytesPerSector = FileFsSize.BytesPerSector;
|
if (lpSectorsPerCluster)
|
||||||
*lpSectorsPerCluster = FileFsSize.SectorsPerAllocationUnit;
|
*lpSectorsPerCluster = FileFsSize.SectorsPerAllocationUnit;
|
||||||
|
if (lpBytesPerSector)
|
||||||
|
*lpBytesPerSector = FileFsSize.BytesPerSector;
|
||||||
|
if (lpNumberOfFreeClusters)
|
||||||
*lpNumberOfFreeClusters = FileFsSize.AvailableAllocationUnits.u.LowPart;
|
*lpNumberOfFreeClusters = FileFsSize.AvailableAllocationUnits.u.LowPart;
|
||||||
|
if (lpTotalNumberOfClusters)
|
||||||
*lpTotalNumberOfClusters = FileFsSize.TotalAllocationUnits.u.LowPart;
|
*lpTotalNumberOfClusters = FileFsSize.TotalAllocationUnits.u.LowPart;
|
||||||
CloseHandle(hFile);
|
CloseHandle(hFile);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue