shell32: Show file size in the details view in kilobytes.
This commit is contained in:
parent
000eddbc8c
commit
6cc378cc67
|
@ -2082,7 +2082,7 @@ DWORD _ILGetFileSize (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
|
||||||
case PT_VALUE:
|
case PT_VALUE:
|
||||||
dwSize = pdata->u.file.dwFileSize;
|
dwSize = pdata->u.file.dwFileSize;
|
||||||
if (pOut)
|
if (pOut)
|
||||||
StrFormatByteSizeA(dwSize, pOut, uOutSize);
|
StrFormatKBSizeA(dwSize, pOut, uOutSize);
|
||||||
return dwSize;
|
return dwSize;
|
||||||
}
|
}
|
||||||
if (pOut)
|
if (pOut)
|
||||||
|
|
|
@ -424,7 +424,7 @@ static HRESULT WINAPI RecycleBin_GetDetailsOf(IShellFolder2 *iface, LPCITEMIDLIS
|
||||||
PathRemoveFileSpecW(buffer);
|
PathRemoveFileSpecW(buffer);
|
||||||
break;
|
break;
|
||||||
case COLUMN_SIZE:
|
case COLUMN_SIZE:
|
||||||
StrFormatByteSizeW(((LONGLONG)data.nFileSizeHigh<<32)|data.nFileSizeLow, buffer, MAX_PATH);
|
StrFormatKBSizeW(((LONGLONG)data.nFileSizeHigh<<32)|data.nFileSizeLow, buffer, MAX_PATH);
|
||||||
break;
|
break;
|
||||||
case COLUMN_MTIME:
|
case COLUMN_MTIME:
|
||||||
FormatDateTime(buffer, MAX_PATH, data.ftLastWriteTime);
|
FormatDateTime(buffer, MAX_PATH, data.ftLastWriteTime);
|
||||||
|
|
Loading…
Reference in New Issue