FileView: Fixed default icon index (off by 1) when non IconPath is specified.

This commit is contained in:
Brian Ferguson 2013-01-25 21:24:03 -07:00
parent 178ccb0af4
commit a96151b8f8

View File

@ -235,7 +235,7 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue)
std::wstring temp = L"icon"; std::wstring temp = L"icon";
WCHAR buffer[MAX_PATH]; WCHAR buffer[MAX_PATH];
_itow_s(child->index, buffer, 10); _itow_s(child->index + 1, buffer, 10);
temp += buffer; temp += buffer;
temp += L".ico"; temp += L".ico";
child->iconPath = RmReadPath(rm, L"IconPath", temp.c_str()); child->iconPath = RmReadPath(rm, L"IconPath", temp.c_str());