https://git.reactos.org/?p=reactos.git;a=commitdiff;h=6d9a0d0fd46214b6268b3f...
commit 6d9a0d0fd46214b6268b3f6a738e3b1ce2297468 Author: Giannis Adamopoulos gadamopoulos@reactos.org AuthorDate: Sat Jan 13 21:27:57 2018 +0200 Commit: Giannis Adamopoulos gadamopoulos@reactos.org CommitDate: Sat Jan 13 21:27:57 2018 +0200
[SHELL32] CDrivesFolder: Fix showing the drive capacity. CORE-14201 --- dll/win32/shell32/folders/CDrivesFolder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/dll/win32/shell32/folders/CDrivesFolder.cpp b/dll/win32/shell32/folders/CDrivesFolder.cpp index 196165597f..91ffc4d506 100644 --- a/dll/win32/shell32/folders/CDrivesFolder.cpp +++ b/dll/win32/shell32/folders/CDrivesFolder.cpp @@ -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);