https://git.reactos.org/?p=reactos.git;a=commitdiff;h=365fafc03b425f44a940f…
commit 365fafc03b425f44a940f1d9e7520a57f6560ae9
Author: Mark Jansen <mark.jansen(a)reactos.org>
AuthorDate: Mon Apr 13 22:44:56 2020 +0200
Commit: Mark Jansen <mark.jansen(a)reactos.org>
CommitDate: Mon Apr 13 22:44:56 2020 +0200
[MSCTF_WINETEST] Skip crashing test when it fails
CORE-16797
---
modules/rostests/winetests/msctf/inputprocessor.c | 9 +++++++++
1 file changed, 9 insertions(+)
diff --git a/modules/rostests/winetests/msctf/inputprocessor.c
b/modules/rostests/winetests/msctf/inputprocessor.c
index 1222085fe0a..787dba77833 100644
--- a/modules/rostests/winetests/msctf/inputprocessor.c
+++ b/modules/rostests/winetests/msctf/inputprocessor.c
@@ -2523,6 +2523,12 @@ static DWORD WINAPI test_MultiThreadApartment_Thread(void *param)
{
hr = CoCreateInstance(&CLSID_TF_ThreadMgr, NULL, CLSCTX_INPROC_SERVER,
&IID_ITfThreadMgrEx, (LPVOID *)&thmgr);
ok(SUCCEEDED(hr), "Failed to create ITfThreadMgrEx instance\n");
+#ifdef __REACTOS__
+ // See CORE-16797
+ if (!SUCCEEDED(hr))
+ goto err_out;
+#endif
+
hr = ITfThreadMgrEx_QueryInterface(thmgr, &IID_ITfSource, (LPVOID
*)&source);
ok(SUCCEEDED(hr), "Failed to query ITfSource interface\n");
@@ -2535,6 +2541,9 @@ static DWORD WINAPI test_MultiThreadApartment_Thread(void *param) {
hr = ITfThreadMgrEx_Release(thmgr);
ok(SUCCEEDED(hr), "Failed to Release thread manager\n");
+#ifdef __REACTOS__
+err_out:
+#endif
CoUninitialize();