mirror of
https://github.com/reactos/reactos.git
synced 2025-05-07 10:46:58 +00:00
[BROWSEUI_APITEST] Fix abnormal termination on fn2 == NULL
The DoWordBreakProc function crashed. CORE-9281
This commit is contained in:
parent
a340ec1767
commit
2282205d13
1 changed files with 4 additions and 1 deletions
|
@ -350,7 +350,10 @@ DoTestCaseA(INT x, INT y, INT cx, INT cy, LPCWSTR pszInput,
|
||||||
(EDITWORDBREAKPROC)SendMessageW(hwndEdit, EM_GETWORDBREAKPROC, 0, 0);
|
(EDITWORDBREAKPROC)SendMessageW(hwndEdit, EM_GETWORDBREAKPROC, 0, 0);
|
||||||
ok(fn1 != fn2, "fn1 == fn2\n");
|
ok(fn1 != fn2, "fn1 == fn2\n");
|
||||||
ok(fn2 != NULL, "fn2 was NULL\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
|
// take care of the message queue
|
||||||
|
|
Loading…
Reference in a new issue