From 2282205d135e1ac53bb4d08a0b65a119ab2e0bb2 Mon Sep 17 00:00:00 2001 From: Katayama Hirofumi MZ Date: Thu, 4 Mar 2021 14:42:04 +0900 Subject: [PATCH] [BROWSEUI_APITEST] Fix abnormal termination on fn2 == NULL The DoWordBreakProc function crashed. CORE-9281 --- modules/rostests/apitests/browseui/IAutoComplete.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/rostests/apitests/browseui/IAutoComplete.cpp b/modules/rostests/apitests/browseui/IAutoComplete.cpp index 14938182fcd..0fa7d301542 100644 --- a/modules/rostests/apitests/browseui/IAutoComplete.cpp +++ b/modules/rostests/apitests/browseui/IAutoComplete.cpp @@ -350,7 +350,10 @@ DoTestCaseA(INT x, INT y, INT cx, INT cy, LPCWSTR pszInput, (EDITWORDBREAKPROC)SendMessageW(hwndEdit, EM_GETWORDBREAKPROC, 0, 0); ok(fn1 != fn2, "fn1 == fn2\n"); ok(fn2 != NULL, "fn2 was NULL\n"); - DoWordBreakProc(fn2); + if (fn2) + DoWordBreakProc(fn2); + else + skip("fn2 == NULL\n"); } // take care of the message queue