From 03e3e4ebe0fee7bbe8014014b77a21d22cc090a8 Mon Sep 17 00:00:00 2001 From: "(no author)" <(no author)@4f64403b-2f21-0410-a795-97e2b3489a10> Date: Tue, 6 Apr 2010 00:55:48 +0000 Subject: Fixed translation issue Removed unneeded/duplicated code (thus shaved few more kb from the dll) git-svn-id: https://server.scottellis.com.au/svn/mim_plugs@496 4f64403b-2f21-0410-a795-97e2b3489a10 --- updater/options.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'updater/options.cpp') diff --git a/updater/options.cpp b/updater/options.cpp index 847a66f..f753997 100644 --- a/updater/options.cpp +++ b/updater/options.cpp @@ -17,7 +17,7 @@ void add_restart_menu_item() { menu.flags = CMIM_ALL; menu.hIcon = LoadIconEx(I_RSTRT); - menu.pszName = Translate("Restart"); + menu.pszName = "Restart"; menu.pszService= MS_UPDATE_MENURESTART; menu.position = 2000099900; hMainMenuItemRestart = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu); @@ -31,7 +31,7 @@ void add_update_and_exit_menu_item() { menu.flags = CMIM_ALL; menu.hIcon = LoadIconEx(I_CHKUPDEXT); - menu.pszName = Translate("Update and Exit"); + menu.pszName = "Update and Exit"; menu.pszService= MS_UPDATE_MENUUPDATEANDEXIT; menu.position = 2000099901; hMainMenuItemUpdateAndExit = (HANDLE)CallService(MS_CLIST_ADDMAINMENUITEM,0,(LPARAM)&menu); @@ -62,9 +62,9 @@ static int EnumerateFuncFillList(char *szComponentName, UpdateOptions *update_op lvI.lParam = (update_options->enabled ? 1 : 0) + (update_options->use_beta ? 2 : 0) + (update_options->fixed ? 4 : 0); lvI.iSubItem = 0; - lvI.pszText = TranslateTS(temp_str = GetTString(szComponentName)); + lvI.pszText = (temp_str = GetTString(szComponentName)); lvI.iItem = ListView_InsertItem(GetDlgItem(hwndDlg, IDC_LST_REGISTERED), &lvI); - free(temp_str); + mir_free(temp_str); lvI.mask = LVIF_TEXT; lvI.iSubItem = 1; -- cgit v1.2.3