https://git.reactos.org/?p=reactos.git;a=commitdiff;h=53005587f42848bd8229b…
commit 53005587f42848bd8229b45f9641c04e4b30ce0e
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Sat Mar 20 14:04:02 2021 +0900
Commit: GitHub <noreply(a)github.com>
CommitDate: Sat Mar 20 14:04:02 2021 +0900
[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