[SHELL32] CDrivesFolder: Fix showing the drive capacity. CORE-14201
authorGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 13 Jan 2018 19:27:57 +0000 (21:27 +0200)
committerGiannis Adamopoulos <gadamopoulos@reactos.org>
Sat, 13 Jan 2018 19:27:57 +0000 (21:27 +0200)
dll/win32/shell32/folders/CDrivesFolder.cpp

index 1961655..91ffc4d 100644 (file)
@@ -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);