Commit b3da1ac0 authored by Ulrich Czekalla's avatar Ulrich Czekalla Committed by Alexandre Julliard

Ensure there is an edit control when we reset contents.

parent e5786e3b
......@@ -2091,7 +2091,7 @@ static LRESULT ComboWndProc_locked( WND* pWnd, UINT message,
case CB_RESETCONTENT16:
case CB_RESETCONTENT:
SendMessageW(lphc->hWndLBox, LB_RESETCONTENT, 0, 0);
if( CB_HASSTRINGS(lphc) )
if( (lphc->wState & CBF_EDIT) && CB_HASSTRINGS(lphc) )
{
static const WCHAR empty_stringW[] = { 0 };
SendMessageW(lphc->hWndEdit, WM_SETTEXT, 0, (LPARAM)empty_stringW);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment