From 95aa036670a1ce2c461ffd9bd3a586d191ee4675 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Thu, 19 Jul 2012 22:48:01 +0000 Subject: - various icolib fixes; - code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@1061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/Clist_nicer/SRC/clui.cpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) (limited to 'plugins/Clist_nicer/SRC/clui.cpp') diff --git a/plugins/Clist_nicer/SRC/clui.cpp b/plugins/Clist_nicer/SRC/clui.cpp index b25888de02..d8ddd2076b 100644 --- a/plugins/Clist_nicer/SRC/clui.cpp +++ b/plugins/Clist_nicer/SRC/clui.cpp @@ -310,12 +310,10 @@ static void InitIcoLib() TCHAR szFilename[MAX_PATH]; GetModuleFileName(g_hInst, szFilename, MAX_PATH); - SKINICONDESC sid = {0}; int i, version = 0; char szBuffer[128]; - int p_count = 0; - PROTOACCOUNT **accs = NULL; + SKINICONDESC sid = {0}; sid.cbSize = sizeof(SKINICONDESC); sid.flags = SIDF_PATH_TCHAR; sid.pszSection = LPGEN("CList - Nicer/Default"); @@ -350,6 +348,9 @@ static void InitIcoLib() Skin_AddIcon(&sid); } sid.ptszSection = LPGENT("CList - Nicer/Connecting Icons"); + + PROTOACCOUNT **accs = NULL; + int p_count = 0; ProtoEnumAccounts( &p_count, &accs ); for (i = 0; i < p_count; i++) { TCHAR szDescr[128]; -- cgit v1.2.3