[BROWSEUI] Fix CAutoComplete::OnMeasureItem assertion

CORE-17505
This commit is contained in:
Katayama Hirofumi MZ 2021-03-11 16:55:49 +09:00
parent 32a9b64051
commit bcba930622

View file

@ -1781,7 +1781,8 @@ LRESULT CAutoComplete::OnMeasureItem(UINT uMsg, WPARAM wParam, LPARAM lParam, BO
ATLASSERT(pMeasure != NULL);
if (pMeasure->CtlType != ODT_LISTVIEW)
return FALSE;
if (!m_hwndList)
return FALSE;
ATLASSERT(m_hwndList.GetStyle() & LVS_OWNERDRAWFIXED);
pMeasure->itemHeight = m_hwndList.m_cyItem; // height of item
return TRUE;