summaryrefslogtreecommitdiff
path: root/plugins/Restart
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-10-07 15:14:32 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-10-07 15:14:32 +0000
commit9da2dd7426201c576579c4e36086b612b3594628 (patch)
tree0ac202cf636bb4d5580d99f752ccc0ec3b6c0677 /plugins/Restart
parenta44081526ac43ed87bf59c215468cbba77f8b5e3 (diff)
fix for menu item's removal
git-svn-id: http://svn.miranda-ng.org/main/trunk@1804 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Restart')
-rw-r--r--plugins/Restart/src/restart.cpp21
1 files changed, 10 insertions, 11 deletions
diff --git a/plugins/Restart/src/restart.cpp b/plugins/Restart/src/restart.cpp
index feec07f359..3ed95eb5e0 100644
--- a/plugins/Restart/src/restart.cpp
+++ b/plugins/Restart/src/restart.cpp
@@ -21,7 +21,7 @@ PLUGININFOEX pluginInfo={
"ep@eugn.me",
"© 2008 - 2012 -=J-Scar=-",
"http://miranda-ng.org",
- UNICODE_AWARE,
+ UNICODE_AWARE,
0x61bedf3a, 0xcc2, 0x41a3, { 0xb9, 0x80, 0xbb, 0x93, 0x93, 0x36, 0x89, 0x35 } // {61BEDF3A-0CC2-41a3-B980-BB9393368935}
};
@@ -37,24 +37,23 @@ extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD miranda
}
extern "C" __declspec(dllexport) int Load(void)
-{
- SKINICONDESC sid = {0};
- CLISTMENUITEM mi = {0};
+{
+ mir_getLP( &pluginInfo );
+
TCHAR szFile[MAX_PATH];
-
- // IcoLib support
GetModuleFileName(hInst, szFile, MAX_PATH);
+
+ // IcoLib support
+ SKINICONDESC sid = { sizeof(sid) };
sid.ptszDefaultFile = szFile;
- sid.cbSize = sizeof(sid);
sid.flags = SIDF_ALL_TCHAR;
-
sid.ptszSection = _T("Restart Plugin");
sid.ptszDescription = _T("Restart");
sid.pszName = "rst_restart_icon";
sid.iDefaultIndex = -IDI_RESTARTICON;
hIconHandle = Skin_AddIcon(&sid);
-
- mi.cbSize = sizeof(mi);
+
+ CLISTMENUITEM mi = { sizeof(mi) };
mi.position = -0x7FFFFFFF;
mi.flags = CMIF_ICONFROMICOLIB | CMIF_TCHAR;
mi.icolibItem = hIconHandle;
@@ -68,4 +67,4 @@ extern "C" __declspec(dllexport) int Load(void)
extern "C" __declspec(dllexport) int Unload(void)
{
return 0;
-} \ No newline at end of file
+}