mirror of
https://github.com/reactos/reactos.git
synced 2024-10-05 17:06:29 +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
|
@ -256,10 +256,14 @@ GetDiskFreeSpaceW(
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
*lpBytesPerSector = FileFsSize.BytesPerSector;
|
||||
*lpSectorsPerCluster = FileFsSize.SectorsPerAllocationUnit;
|
||||
*lpNumberOfFreeClusters = FileFsSize.AvailableAllocationUnits.u.LowPart;
|
||||
*lpTotalNumberOfClusters = FileFsSize.TotalAllocationUnits.u.LowPart;
|
||||
if (lpSectorsPerCluster)
|
||||
*lpSectorsPerCluster = FileFsSize.SectorsPerAllocationUnit;
|
||||
if (lpBytesPerSector)
|
||||
*lpBytesPerSector = FileFsSize.BytesPerSector;
|
||||
if (lpNumberOfFreeClusters)
|
||||
*lpNumberOfFreeClusters = FileFsSize.AvailableAllocationUnits.u.LowPart;
|
||||
if (lpTotalNumberOfClusters)
|
||||
*lpTotalNumberOfClusters = FileFsSize.TotalAllocationUnits.u.LowPart;
|
||||
CloseHandle(hFile);
|
||||
|
||||
return TRUE;
|
||||
|
|
Loading…
Reference in a new issue