[BROWSEUI] Fix return value on sanity check of auto-completion (#3544)

Reduce failures on sanity check of auto-completion. CORE-9281
- Return E_FAIL rather than E_INVALIDARG in sanity check of CAutoComplete::Init (IAutoComplete::Init).
This commit is contained in:
Katayama Hirofumi MZ
2021-03-20 14:04:02 +09:00
committed by GitHub
parent f49c164428
commit 53005587f4

View File

@@ -1133,7 +1133,7 @@ CAutoComplete::Init(HWND hwndEdit, IUnknown *punkACL,
if (m_hwndEdit || !punkACL)
{
ATLASSERT(0);
return E_INVALIDARG;
return E_FAIL;
}
// set this pointer to m_hwndEdit