summaryrefslogtreecommitdiff
path: root/plugins/Rate
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-12-01 21:07:34 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-12-01 21:07:34 +0000
commit66ddfd87a0e55b9534b8669392bb0cdee2e9fa3b (patch)
tree6075890e2ba60622069d5179f280d64b225c9be9 /plugins/Rate
parent1860018b201d995ed051c0affb72d5a1d09fa02e (diff)
SKINICONDESC initialization - end-II :)
git-svn-id: http://svn.miranda-ng.org/main/trunk@2599 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Rate')
-rw-r--r--plugins/Rate/src/main.cpp15
1 files changed, 7 insertions, 8 deletions
diff --git a/plugins/Rate/src/main.cpp b/plugins/Rate/src/main.cpp
index 7284a56113..c1c7af1d93 100644
--- a/plugins/Rate/src/main.cpp
+++ b/plugins/Rate/src/main.cpp
@@ -71,16 +71,16 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
struct
{
- TCHAR* szDescr;
+ char* szDescr;
char* szName;
int defIconID;
HANDLE hIconLibItem;
}
static iconList[] =
{
- { LPGENT( "Rate high" ), "rate_high", IDI_RATEHI },
- { LPGENT( "Rate medium" ), "rate_medium", IDI_RATEME },
- { LPGENT( "Rate low" ), "rate_low", IDI_RATELO },
+ { LPGEN("Rate high"), "rate_high", IDI_RATEHI },
+ { LPGEN("Rate medium"), "rate_medium", IDI_RATEME },
+ { LPGEN("Rate low"), "rate_low", IDI_RATELO },
};
static void init_icolib (void)
@@ -88,15 +88,14 @@ static void init_icolib (void)
TCHAR szFile[MAX_PATH];
GetModuleFileName(g_hInst, szFile, MAX_PATH);
- SKINICONDESC sid = {0};
- sid.cbSize = sizeof(sid);
- sid.ptszSection = LPGENT("Contact Rate");
+ SKINICONDESC sid = { sizeof(sid) };
+ sid.pszSection = LPGEN("Contact Rate");
sid.ptszDefaultFile = szFile;
sid.flags = SIDF_ALL_TCHAR;
for (int i = 0; i < SIZEOF(iconList); i++ ) {
sid.pszName = iconList[i].szName;
- sid.ptszDescription = iconList[i].szDescr;
+ sid.pszDescription = iconList[i].szDescr;
sid.iDefaultIndex = -iconList[i].defIconID;
iconList[i].hIconLibItem = Skin_AddIcon(&sid);
}