From a96151b8f83f979109c48cdf7a03e0f7d999501b Mon Sep 17 00:00:00 2001 From: Brian Ferguson Date: Fri, 25 Jan 2013 21:24:03 -0700 Subject: [PATCH] FileView: Fixed default icon index (off by 1) when non IconPath is specified. --- Plugins/PluginFileView/PluginFileView.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Plugins/PluginFileView/PluginFileView.cpp b/Plugins/PluginFileView/PluginFileView.cpp index fddc72f0..df8b503e 100644 --- a/Plugins/PluginFileView/PluginFileView.cpp +++ b/Plugins/PluginFileView/PluginFileView.cpp @@ -235,7 +235,7 @@ PLUGIN_EXPORT void Reload(void* data, void* rm, double* maxValue) std::wstring temp = L"icon"; WCHAR buffer[MAX_PATH]; - _itow_s(child->index, buffer, 10); + _itow_s(child->index + 1, buffer, 10); temp += buffer; temp += L".ico"; child->iconPath = RmReadPath(rm, L"IconPath", temp.c_str());