summaryrefslogtreecommitdiff
path: root/plugins/Db_autobackups/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Db_autobackups/main.cpp')
-rw-r--r--plugins/Db_autobackups/main.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/plugins/Db_autobackups/main.cpp b/plugins/Db_autobackups/main.cpp
index c52b3ad199..f771261202 100644
--- a/plugins/Db_autobackups/main.cpp
+++ b/plugins/Db_autobackups/main.cpp
@@ -63,17 +63,16 @@ static int FoldersInit(void)
static void IcoLibInit(void)
{
- int i;
- SKINICONDESC sid = {0};
TCHAR tszFile[MAX_PATH];
GetModuleFileName(hInst, tszFile, MAX_PATH);
+ SKINICONDESC sid = {0};
sid.cbSize = sizeof(SKINICONDESC);
sid.ptszDefaultFile = tszFile;
sid.ptszSection = _T("Database/Database Backups");
sid.flags = SIDF_ALL_TCHAR;
- for ( i = 0; i < SIZEOF(iconList); i++ ) {
+ for (int i = 0; i < SIZEOF(iconList); i++) {
sid.pszName = iconList[i].szName;
sid.ptszDescription = iconList[i].szDescr;
sid.iDefaultIndex = -iconList[i].defIconID;