diff options
author | George Hazan <george.hazan@gmail.com> | 2015-06-07 18:19:34 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2015-06-07 18:19:34 +0000 |
commit | e5cb033463036b182fb6e5e3eed50a14987f5300 (patch) | |
tree | c1e0c20c1fb1808f658f4aadf624a57474576eb4 /plugins/UserInfoEx/src/mir_icolib.cpp | |
parent | e2d81fead804c1d7dd557af5d3082ba0399a38c1 (diff) |
SKINICONDESC -> MAllStrings
git-svn-id: http://svn.miranda-ng.org/main/trunk@14054 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/UserInfoEx/src/mir_icolib.cpp')
-rw-r--r-- | plugins/UserInfoEx/src/mir_icolib.cpp | 16 |
1 files changed, 8 insertions, 8 deletions
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;
}
|