shell32: Show file size in the details view in kilobytes.

This commit is contained in:
Mikołaj Zalewski 2006-08-21 23:30:48 +02:00 committed by Alexandre Julliard
parent 000eddbc8c
commit 6cc378cc67
2 changed files with 2 additions and 2 deletions

View File

@ -2082,7 +2082,7 @@ DWORD _ILGetFileSize (LPCITEMIDLIST pidl, LPSTR pOut, UINT uOutSize)
case PT_VALUE:
dwSize = pdata->u.file.dwFileSize;
if (pOut)
StrFormatByteSizeA(dwSize, pOut, uOutSize);
StrFormatKBSizeA(dwSize, pOut, uOutSize);
return dwSize;
}
if (pOut)

View File

@ -424,7 +424,7 @@ static HRESULT WINAPI RecycleBin_GetDetailsOf(IShellFolder2 *iface, LPCITEMIDLIS
PathRemoveFileSpecW(buffer);
break;
case COLUMN_SIZE:
StrFormatByteSizeW(((LONGLONG)data.nFileSizeHigh<<32)|data.nFileSizeLow, buffer, MAX_PATH);
StrFormatKBSizeW(((LONGLONG)data.nFileSizeHigh<<32)|data.nFileSizeLow, buffer, MAX_PATH);
break;
case COLUMN_MTIME:
FormatDateTime(buffer, MAX_PATH, data.ftLastWriteTime);