Free disk space can be read from the removable drives too.

Size and count were reversed in the recycle manager. Fixed.
This commit is contained in:
Kimmo Pekkola
2009-03-10 17:32:35 +00:00
parent d7bfbf386d
commit b4b2d3b9b0
3 changed files with 8 additions and 4 deletions

View File

@ -97,11 +97,11 @@ double Update2(UINT id)
RecycleBinInfo.cbSize = sizeof( RecycleBinInfo ); // Tell size of structure
SHQueryRecycleBin( L"C:", &RecycleBinInfo ); // Get recycle bin info
if (dataType == NUMRECYCLE)
if (dataType == SIZERECYCLE)
{
return (double)RecycleBinInfo.i64Size; // size in bytes
}
else if (dataType == SIZERECYCLE)
else if (dataType == NUMRECYCLE)
{
return (double)RecycleBinInfo.i64NumItems; // number of items in bin
}