mirror of
https://github.com/reactos/reactos.git
synced 2025-08-03 15:46:13 +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,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…
Add table
Add a link
Reference in a new issue