From 1860018b201d995ed051c0affb72d5a1d09fa02e Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sat, 1 Dec 2012 20:32:13 +0000 Subject: SKINICONDESC initialization - end of story git-svn-id: http://svn.miranda-ng.org/main/trunk@2598 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/JabberG/src/jabber_icolib.cpp | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) (limited to 'protocols/JabberG') diff --git a/protocols/JabberG/src/jabber_icolib.cpp b/protocols/JabberG/src/jabber_icolib.cpp index 3abf457b1b..490a8b1377 100644 --- a/protocols/JabberG/src/jabber_icolib.cpp +++ b/protocols/JabberG/src/jabber_icolib.cpp @@ -196,11 +196,10 @@ void CJabberProto::IconsInit(void) for (i = 0; i < SIZEOF(TransportProtoTable); ++i) m_transportProtoTableStartIndex[i] = -1; - SKINICONDESC sid = {0}; char szFile[MAX_PATH]; GetModuleFileNameA(hInst, szFile, MAX_PATH); - sid.cbSize = sizeof(SKINICONDESC); + SKINICONDESC sid = { sizeof(sid) }; sid.pszDefaultFile = szFile; sid.flags = SIDF_TCHAR; @@ -612,8 +611,7 @@ static void sttProcessIcons(int iAmount) TCHAR szFile[MAX_PATH]; GetModuleFileName(hInst, szFile, MAX_PATH); - SKINICONDESC sid = {0}; - sid.cbSize = sizeof(SKINICONDESC); + SKINICONDESC sid = { sizeof(sid) }; sid.ptszDefaultFile = szFile; sid.flags = SIDF_PATH_TCHAR; -- cgit v1.2.3