From 53005587f42848bd8229b45f9641c04e4b30ce0e Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Sat, 20 Mar 2021 14:04:02 +0900 Subject: [PATCH] [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). --- dll/win32/browseui/CAutoComplete.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dll/win32/browseui/CAutoComplete.cpp b/dll/win32/browseui/CAutoComplete.cpp index fa0c24adb6b..8fe44e27977 100644 --- a/dll/win32/browseui/CAutoComplete.cpp +++ b/dll/win32/browseui/CAutoComplete.cpp @@ -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