diff options
Diffstat (limited to 'yapp/services.cpp')
-rw-r--r-- | yapp/services.cpp | 6 |
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);
|