From e5cb033463036b182fb6e5e3eed50a14987f5300 Mon Sep 17 00:00:00 2001 From: George Hazan Date: Sun, 7 Jun 2015 18:19:34 +0000 Subject: SKINICONDESC -> MAllStrings git-svn-id: http://svn.miranda-ng.org/main/trunk@14054 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- plugins/UserInfoEx/src/mir_icolib.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'plugins/UserInfoEx/src/mir_icolib.cpp') diff --git a/plugins/UserInfoEx/src/mir_icolib.cpp b/plugins/UserInfoEx/src/mir_icolib.cpp index 4b8388382f..2154abdc46 100644 --- a/plugins/UserInfoEx/src/mir_icolib.cpp +++ b/plugins/UserInfoEx/src/mir_icolib.cpp @@ -226,13 +226,13 @@ static HANDLE IcoLib_RegisterIconHandleEx(LPSTR szIconID, LPSTR szDescription, L HANDLE hIconHandle = NULL; if (szIconID && szDescription && szSection) { - SKINICONDESC sid = { sizeof(sid) }; + SKINICONDESC sid = { 0 }; sid.flags = SIDF_ALL_TCHAR; sid.pszName = szIconID; - sid.ptszDescription = mir_a2t(szDescription); - sid.ptszSection = mir_a2t(szSection); + sid.description.t = mir_a2t(szDescription); + sid.section.t = mir_a2t(szSection); - if (sid.ptszDescription && sid.ptszSection) { + if (sid.description.t && sid.section.t) { switch (Size) { // small icons (16x16) case 0: @@ -252,8 +252,8 @@ static HANDLE IcoLib_RegisterIconHandleEx(LPSTR szIconID, LPSTR szDescription, L break; } - sid.ptszDefaultFile = szDefaultFile; - if (sid.ptszDefaultFile && sid.ptszDefaultFile[0]) + sid.defaultFile.t = szDefaultFile; + if (sid.defaultFile.t && sid.defaultFile.t[0]) sid.iDefaultIndex = -idIcon; else { sid.hDefaultIcon = hDefIcon; @@ -261,8 +261,8 @@ static HANDLE IcoLib_RegisterIconHandleEx(LPSTR szIconID, LPSTR szDescription, L } hIconHandle = Skin_AddIcon(&sid); } - MIR_FREE(sid.ptszDescription); - MIR_FREE(sid.ptszSection); + MIR_FREE(sid.description.t); + MIR_FREE(sid.section.t); } return hIconHandle; } -- cgit v1.2.3