https://git.reactos.org/?p=reactos.git;a=commitdiff;h=2282205d135e1ac53bb4d…
commit 2282205d135e1ac53bb4d08a0b65a119ab2e0bb2
Author: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
AuthorDate: Thu Mar 4 14:42:04 2021 +0900
Commit: Katayama Hirofumi MZ <katayama.hirofumi.mz(a)gmail.com>
CommitDate: Thu Mar 4 14:42:04 2021 +0900
[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