summaryrefslogtreecommitdiff
path: root/plugins/MirOTR/src/otr.cpp
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2019-03-07 15:53:20 +0300
committerGeorge Hazan <ghazan@miranda.im>2019-03-07 15:53:20 +0300
commita714fa356e4d6dd8c6169ef4123fea167371a1f9 (patch)
tree8c71762fdd2285a83f30a033b6ee2190e98ae69b /plugins/MirOTR/src/otr.cpp
parente43e5e9e3ff94b20953c840a819952e4221654fa (diff)
OTR:
- icolib icons support rewritten more transparently; - fix for the wrong icon in menu
Diffstat (limited to 'plugins/MirOTR/src/otr.cpp')
-rw-r--r--plugins/MirOTR/src/otr.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/plugins/MirOTR/src/otr.cpp b/plugins/MirOTR/src/otr.cpp
index bd0b7839be..edace0275d 100644
--- a/plugins/MirOTR/src/otr.cpp
+++ b/plugins/MirOTR/src/otr.cpp
@@ -55,7 +55,7 @@ INT_PTR CALLBACK GenKeyDlgBoxProc(HWND hWndDlg, UINT msg, WPARAM, LPARAM lParam)
return 0;
}
TranslateDialogDefault(hWndDlg);
- SetClassLongPtr(hWndDlg, GCLP_HICON, (LONG_PTR)IcoLib_GetIcon(ICON_OTR, 1));
+ SetClassLongPtr(hWndDlg, GCLP_HICON, (LONG_PTR)IcoLib_GetIconByHandle(iconList[ICON_OTR].hIcolib, 1));
wchar_t buff[256];
wchar_t *proto = mir_a2u((char*)lParam);
mir_snwprintf(buff, TranslateW(LANG_GENERATE_KEY), proto);
@@ -71,7 +71,6 @@ INT_PTR CALLBACK GenKeyDlgBoxProc(HWND hWndDlg, UINT msg, WPARAM, LPARAM lParam)
return TRUE;
case WM_DESTROY:
SetClassLongPtr(hWndDlg, GCLP_HICON, 0);
- IcoLib_Release(ICON_OTR, 1);
}
return FALSE;
}