summaryrefslogtreecommitdiff
path: root/yapp/services.cpp
diff options
context:
space:
mode:
author(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-12-13 01:07:10 +0000
committer(no author) <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10>2010-12-13 01:07:10 +0000
commit1bd3ca0288fe4a5694f0975bef070209126d97fb (patch)
treee58fe6ab6095b2b60c5e89136af2d0c06f49c35c /yapp/services.cpp
parent3fb5f8dface90d14b4719b092c09fff095f014c0 (diff)
Fixes for mingw
git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@583 4f64403b-2f21-0410-a795-97e2b3489a10
Diffstat (limited to 'yapp/services.cpp')
-rw-r--r--yapp/services.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/yapp/services.cpp b/yapp/services.cpp
index 84213ab..05aa859 100644
--- a/yapp/services.cpp
+++ b/yapp/services.cpp
@@ -244,7 +244,7 @@ INT_PTR IsSecondLineShown(WPARAM wParam, LPARAM lParam) {
void UpdateMenu() {
CLISTMENUITEM menu = {0};
menu.cbSize = sizeof(CLISTMENUITEM);
- menu.pszName = (DBGetContactSettingByte(0, MODULE, "Enabled", 1) == 1 ? "Disable Popups" : "Enable Popups");
+ menu.pszName = (char*)(DBGetContactSettingByte(0, MODULE, "Enabled", 1) == 1 ? LPGEN("Disable Popups") : LPGEN("Enable Popups"));
menu.flags = CMIM_NAME;// | CMIM_ICON;
CallService(MS_CLIST_MODIFYMENUITEM, (WPARAM)hMenuToggleOnOff, (LPARAM)&menu);
}
@@ -497,8 +497,8 @@ void InitServices() {
menu.hIcon = NULL;
menu.pszService = "PopUp/ToggleEnabled";
- menu.pszName = DBGetContactSettingByte(0, MODULE, "Enabled", 1) ?
- LPGEN("Disable Popups") : LPGEN("Enable Popups");
+ menu.pszName = (char*)(DBGetContactSettingByte(0, MODULE, "Enabled", 1) ?
+ LPGEN("Disable Popups") : LPGEN("Enable Popups"));
hMenuToggleOnOff = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM, 0, (LPARAM)&menu);
hEventBuildMenu = HookEvent(ME_CLIST_PREBUILDCONTACTMENU, PrebuildMenu);