summaryrefslogtreecommitdiff
path: root/plugins/AddContactPlus/src
diff options
context:
space:
mode:
authorGeorge Hazan <ghazan@miranda.im>2017-02-01 18:35:23 +0300
committerGeorge Hazan <ghazan@miranda.im>2017-02-01 18:35:23 +0300
commite3917c5232297633df816d23abea42e3c27c1b69 (patch)
treeaefecabbabdde09e568a2cd5c7eeb0b7388d38e6 /plugins/AddContactPlus/src
parent2eb26dc2acbcd30ae9f3673dae89ba647f594564 (diff)
minor code cleaning
Diffstat (limited to 'plugins/AddContactPlus/src')
-rw-r--r--plugins/AddContactPlus/src/addcontact.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/plugins/AddContactPlus/src/addcontact.cpp b/plugins/AddContactPlus/src/addcontact.cpp
index dbef10c21f..e1d0a79bd0 100644
--- a/plugins/AddContactPlus/src/addcontact.cpp
+++ b/plugins/AddContactPlus/src/addcontact.cpp
@@ -127,7 +127,9 @@ bool AddContactDlgAccounts(HWND hdlg, AddDialogParam *acs)
cbei.pszText = pAccounts[i]->tszAccountName;
GetTextExtentPoint32(hdc, cbei.pszText, (int)mir_wstrlen(cbei.pszText), &textSize);
- if (textSize.cx > cbWidth) cbWidth = textSize.cx;
+ if (textSize.cx > cbWidth)
+ cbWidth = textSize.cx;
+
HICON hIcon = (HICON)CallProtoService(pAccounts[i]->szModuleName, PS_LOADICON, PLI_PROTOCOL | PLIF_SMALL, 0);
cbei.iImage = cbei.iSelectedImage = ImageList_AddIcon(hIml, hIcon);
DestroyIcon(hIcon);