summaryrefslogtreecommitdiff
path: root/protocols/EmLanProto
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-01 17:52:22 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-01 17:52:22 +0300
commit2eb26dc2acbcd30ae9f3673dae89ba647f594564 (patch)
tree3e79dccb35ce2a778f8e889b14858cddd54d851c /protocols/EmLanProto
parenta394c200ee2664b177d376259ab26b78bb854c19 (diff)
PLI_ONLINE & PLI_OFFLINE - unused constants removed
Diffstat (limited to 'protocols/EmLanProto')
-rw-r--r--protocols/EmLanProto/src/amdproto.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/protocols/EmLanProto/src/amdproto.cpp b/protocols/EmLanProto/src/amdproto.cpp
index 4ad6a6c077..c65fdeb4de 100644
--- a/protocols/EmLanProto/src/amdproto.cpp
+++ b/protocols/EmLanProto/src/amdproto.cpp
@@ -85,11 +85,10 @@ static INT_PTR __cdecl EMPGetName(WPARAM wParam, LPARAM lParam)
static INT_PTR __cdecl EMPLoadIcon(WPARAM wParam, LPARAM)
{
- UINT id = IDI_ICON_ONLINE;
- if ((wParam & 0xFFFF) == PLI_OFFLINE)
- id = IDI_ICON_OFFLINE;
- HICON res = LoadIcon(g_hInstance, MAKEINTRESOURCE(id));
- return (INT_PTR)res;
+ if ((wParam & 0xFFFF) != PLI_PROTOCOL)
+ return 0;
+
+ return (INT_PTR)LoadIcon(g_hInstance, MAKEINTRESOURCE(IDI_ICON_ONLINE));
}
static INT_PTR __cdecl EMPGetStatus(WPARAM, LPARAM)