summaryrefslogtreecommitdiff
path: root/plugins/Chat
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-19 22:48:01 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-19 22:48:01 +0000
commit95aa036670a1ce2c461ffd9bd3a586d191ee4675 (patch)
treecd244db18622df3462166ed39593ca924c890f6b /plugins/Chat
parentf6e0db0590e2f8feeacc29d4e50007fbe358f9d5 (diff)
- various icolib fixes;
- code cleaning git-svn-id: http://svn.miranda-ng.org/main/trunk@1061 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Chat')
-rw-r--r--plugins/Chat/src/options.cpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/plugins/Chat/src/options.cpp b/plugins/Chat/src/options.cpp
index 381054d5ca..89d39d7f47 100644
--- a/plugins/Chat/src/options.cpp
+++ b/plugins/Chat/src/options.cpp
@@ -429,9 +429,9 @@ void RegisterFonts( void )
struct
{
int size;
- const char* szSection;
- const char* szDescr;
- const char* szName;
+ char* szSection;
+ char* szDescr;
+ char* szName;
int defIconID;
}
static const iconList[] =
@@ -477,19 +477,19 @@ static const iconList[] =
void AddIcons(void)
{
- int i;
- SKINICONDESC sid = {0};
- char szFile[MAX_PATH];
- GetModuleFileNameA(g_hInst, szFile, MAX_PATH);
+ TCHAR szFile[MAX_PATH];
+ GetModuleFileName(g_hInst, szFile, MAX_PATH);
+ SKINICONDESC sid = {0};
sid.cbSize = sizeof(SKINICONDESC);
- sid.pszDefaultFile = szFile;
+ sid.ptszDefaultFile = szFile;
+ sid.flags = SIDF_PATH_TCHAR;
- for ( i = 0; i < SIZEOF(iconList); i++ ) {
+ for (int i = 0; i < SIZEOF(iconList); i++ ) {
sid.cx = sid.cy = iconList[i].size;
- sid.pszSection = (char*)iconList[i].szSection;
- sid.pszDescription = (char*)iconList[i].szDescr;
- sid.pszName = (char*)iconList[i].szName;
+ sid.pszSection = iconList[i].szSection;
+ sid.pszDescription = iconList[i].szDescr;
+ sid.pszName = iconList[i].szName;
sid.iDefaultIndex = -iconList[i].defIconID;
Skin_AddIcon(&sid);
} }