From 1bd3ca0288fe4a5694f0975bef070209126d97fb Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Mon, 13 Dec 2010 01:07:10 +0000 Subject: Fixes for mingw git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@583 4f64403b-2f21-0410-a795-97e2b3489a10 --- yapp/services.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'yapp/services.cpp') 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); -- cgit v1.2.3