summaryrefslogtreecommitdiff
path: root/plugins/Clist_modern/modern_toolbar.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Clist_modern/modern_toolbar.cpp')
-rw-r--r--plugins/Clist_modern/modern_toolbar.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/plugins/Clist_modern/modern_toolbar.cpp b/plugins/Clist_modern/modern_toolbar.cpp
index 33776eacd3..92a46dcd46 100644
--- a/plugins/Clist_modern/modern_toolbar.cpp
+++ b/plugins/Clist_modern/modern_toolbar.cpp
@@ -57,10 +57,10 @@ static void SetButtonPressed(int i, int state)
static int Modern_InitButtons(WPARAM, LPARAM)
{
- TTBButton tbb = { 0 };
- tbb.cbSize = sizeof(tbb);
-
for (int i=0; i < SIZEOF(BTNS); i++) {
+ TTBButton tbb = { 0 };
+ tbb.cbSize = sizeof(tbb);
+
if (BTNS[i].pszButtonID) {
tbb.name = LPGEN(BTNS[i].pszButtonID);
tbb.pszService = BTNS[i].pszServiceName;