mirror of
https://github.com/reactos/reactos.git
synced 2024-12-31 19:42:51 +00:00
[BROWSEUI] Fix CAutoComplete::OnMeasureItem assertion
CORE-17505
This commit is contained in:
parent
32a9b64051
commit
bcba930622
1 changed files with 2 additions and 1 deletions
|
@ -1781,7 +1781,8 @@ LRESULT CAutoComplete::OnMeasureItem(UINT uMsg, WPARAM wParam, LPARAM lParam, BO
|
||||||
ATLASSERT(pMeasure != NULL);
|
ATLASSERT(pMeasure != NULL);
|
||||||
if (pMeasure->CtlType != ODT_LISTVIEW)
|
if (pMeasure->CtlType != ODT_LISTVIEW)
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
if (!m_hwndList)
|
||||||
|
return FALSE;
|
||||||
ATLASSERT(m_hwndList.GetStyle() & LVS_OWNERDRAWFIXED);
|
ATLASSERT(m_hwndList.GetStyle() & LVS_OWNERDRAWFIXED);
|
||||||
pMeasure->itemHeight = m_hwndList.m_cyItem; // height of item
|
pMeasure->itemHeight = m_hwndList.m_cyItem; // height of item
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
|
Loading…
Reference in a new issue