summaryrefslogtreecommitdiff
path: root/plugins/PluginUpdater/src/PluginUpdater.cpp
diff options
context:
space:
mode:
authorTobias Weimer <wishmaster51@googlemail.com>2015-06-28 18:39:30 +0000
committerTobias Weimer <wishmaster51@googlemail.com>2015-06-28 18:39:30 +0000
commit5a46d2425b7a51c364f9017a44f1d21ce934eb9d (patch)
treea07262316c885798ca858c2242cc881c006ef6e9 /plugins/PluginUpdater/src/PluginUpdater.cpp
parent59cd198e89782263777c57dcd54704ecb1e10212 (diff)
compilation fixes for IM Updater
git-svn-id: http://svn.miranda-ng.org/main/trunk@14431 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/PluginUpdater/src/PluginUpdater.cpp')
-rw-r--r--plugins/PluginUpdater/src/PluginUpdater.cpp12
1 files changed, 8 insertions, 4 deletions
diff --git a/plugins/PluginUpdater/src/PluginUpdater.cpp b/plugins/PluginUpdater/src/PluginUpdater.cpp
index 0653991da7..a1c87820d8 100644
--- a/plugins/PluginUpdater/src/PluginUpdater.cpp
+++ b/plugins/PluginUpdater/src/PluginUpdater.cpp
@@ -84,14 +84,18 @@ extern "C" __declspec(dllexport) int Load(void)
// Add cheking update menu item
InitCheck();
- TMO_MenuItem mi = { 0 };
- mi.position = 400010000;
+
#if MIRANDA_VER >= 0x0A00
+ TMO_MenuItem mi = { 0 };
+ mi.name.a = LPGEN("Check for updates");
mi.hIcolibItem = iconList[0].hIcolib;
#else
- mi.hIcolibItem = IcoLib_GetIconHandle("check_update");
+ CLISTMENUITEM mi = { 0 };
+ mi.cbSize = sizeof(mi);
+ mi.icolibItem = IcoLib_GetIconHandle("check_update");
+ mi.pszName = LPGEN("Check for updates");
#endif
- mi.name.a = LPGEN("Check for updates");
+ mi.position = 400010000;
mi.pszService = MS_PU_CHECKUPDATES;
Menu_AddMainMenuItem(&mi);