mirror of
https://github.com/reactos/reactos.git
synced 2024-06-21 13:31:38 +00:00
[SHELL32] CDrivesFolder: Fix showing the drive capacity. CORE-14201
This commit is contained in:
parent
4b6d929be1
commit
6d9a0d0fd4
|
@ -952,7 +952,7 @@ HRESULT WINAPI CDrivesFolder::GetDetailsOf(PCUITEMID_CHILD pidl, UINT iColumn, S
|
|||
if (GetVolumeInformationA(pszDrive, NULL, 0, NULL, NULL, NULL, NULL, 0))
|
||||
{
|
||||
GetDiskFreeSpaceExA(pszDrive, &ulFreeBytes, &ulTotalBytes, NULL);
|
||||
if (iColumn == 2)
|
||||
if (iColumn == 3)
|
||||
StrFormatByteSize64A(ulTotalBytes.QuadPart, psd->str.cStr, MAX_PATH);
|
||||
else
|
||||
StrFormatByteSize64A(ulFreeBytes.QuadPart, psd->str.cStr, MAX_PATH);
|
||||
|
|
Loading…
Reference in a new issue