diff --git a/Plugins/PluginFolderInfo/FolderInfo.cpp b/Plugins/PluginFolderInfo/FolderInfo.cpp index f63ebd16..b2785e0f 100644 --- a/Plugins/PluginFolderInfo/FolderInfo.cpp +++ b/Plugins/PluginFolderInfo/FolderInfo.cpp @@ -81,8 +81,8 @@ void FolderInfo::CalculateSize() do { // special case for "." and ".." - if (_wcsicmp(findData.cFileName, L".") == 0 || - _wcsicmp(findData.cFileName, L"..") == 0) { + if (wcscmp(findData.cFileName, L".") == 0 || + wcscmp(findData.cFileName, L"..") == 0) { continue; } diff --git a/Plugins/PluginFolderInfo/FolderInfoPlugin.cpp b/Plugins/PluginFolderInfo/FolderInfoPlugin.cpp index 032c1d55..7d473372 100644 --- a/Plugins/PluginFolderInfo/FolderInfoPlugin.cpp +++ b/Plugins/PluginFolderInfo/FolderInfoPlugin.cpp @@ -33,7 +33,7 @@ extern "C" { __declspec( dllexport ) UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id); __declspec( dllexport ) void Finalize(HMODULE instance, UINT id); - __declspec( dllexport ) UINT Update(UINT id); + __declspec( dllexport ) double Update2(UINT id); __declspec( dllexport ) UINT GetPluginVersion(); __declspec( dllexport ) LPCTSTR GetPluginAuthor(); } @@ -162,14 +162,14 @@ UINT Initialize(HMODULE instance, LPCTSTR iniFile, LPCTSTR section, UINT id) This function is called when new value should be measured. The function returns the new value. */ -UINT Update(UINT id) +double Update2(UINT id) { MeasureInfo* measureInfo = sMeasures[id]; if (!measureInfo->Folder) { return 0; } - int now = GetTickCount(); + DWORD now = GetTickCount(); if (now - measureInfo->Folder->GetLastUpdateTime() > UPDATE_TIME_MIN_MS) { measureInfo->Folder->Update(); } @@ -177,7 +177,7 @@ UINT Update(UINT id) switch (measureInfo->Type) { case INFOTYPE_FOLDERSIZE: - return (UINT)measureInfo->Folder->GetSize(); + return (double)measureInfo->Folder->GetSize(); break; case INFOTYPE_FILECOUNT: return measureInfo->Folder->GetFileCount();