mirror of
https://github.com/chibicitiberiu/rainmeter-studio.git
synced 2024-02-24 04:33:31 +00:00
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:
@ -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
|
||||
}
|
||||
|
Reference in New Issue
Block a user