diff options
author | George Hazan <ghazan@miranda.im> | 2018-03-27 20:08:42 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2018-03-27 20:08:42 +0300 |
commit | ed499945b795b6890e26430d761012c37c432c62 (patch) | |
tree | ccc79556934958eda6ca7922929ceeebf23a6be5 /protocols/JabberG | |
parent | e0618a6d95dc4ae3e11e7cd83f567cc0c5ffcfb5 (diff) |
Jabber: crash fix for mood selection dialog
Diffstat (limited to 'protocols/JabberG')
-rw-r--r-- | protocols/JabberG/src/jabber_xstatus.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/protocols/JabberG/src/jabber_xstatus.cpp b/protocols/JabberG/src/jabber_xstatus.cpp index 4f6c768a05..09de8a92b6 100644 --- a/protocols/JabberG/src/jabber_xstatus.cpp +++ b/protocols/JabberG/src/jabber_xstatus.cpp @@ -310,8 +310,8 @@ BOOL CJabberDlgPepSimple::OnWmMeasureItem(UINT, WPARAM, LPARAM lParam) ReleaseDC(m_cbModes.GetHwnd(), hdc);
lpmis->itemHeight = max(tm.tmHeight, 18);
- if (lpmis->itemHeight < 18) lpmis->itemHeight = 18;
-
+ if (lpmis->itemHeight < 18)
+ lpmis->itemHeight = 18;
return TRUE;
}
@@ -324,7 +324,7 @@ BOOL CJabberDlgPepSimple::OnWmDrawItem(UINT, WPARAM, LPARAM lParam) if (lpdis->itemData == -1)
return FALSE;
- CStatusMode *mode = &m_modes[lpdis->itemData];
+ CStatusMode *mode = (CStatusMode *)lpdis->itemData;
TEXTMETRIC tm = { 0 };
GetTextMetrics(lpdis->hDC, &tm);
|