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: 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)

View File

@ -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);