Nikolay Sivov : msctf/tests: Fix crash when ITfInputProcessorProfileMgr is not supported.

Alexandre Julliard julliard at winehq.org
Mon Jun 16 12:37:49 CDT 2014


Module: wine
Branch: master
Commit: d3980cdcf26c040cd8feccb8931e8a699248919a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=d3980cdcf26c040cd8feccb8931e8a699248919a

Author: Nikolay Sivov <nsivov at codeweavers.com>
Date:   Sun Jun 15 11:56:20 2014 +0400

msctf/tests: Fix crash when ITfInputProcessorProfileMgr is not supported.

---

 dlls/msctf/tests/inputprocessor.c |    5 +++++
 1 file changed, 5 insertions(+)

diff --git a/dlls/msctf/tests/inputprocessor.c b/dlls/msctf/tests/inputprocessor.c
index 8a052b3..dfa8731 100644
--- a/dlls/msctf/tests/inputprocessor.c
+++ b/dlls/msctf/tests/inputprocessor.c
@@ -2193,6 +2193,11 @@ static void test_profile_mgr(void)
     HRESULT hres;
 
     hres = ITfInputProcessorProfiles_QueryInterface(g_ipp, &IID_ITfInputProcessorProfileMgr, (void**)&ipp_mgr);
+    if (hres != S_OK)
+    {
+        win_skip("ITfInputProcessorProfileMgr is not supported.\n");
+        return;
+    }
     ok(hres == S_OK, "Could not get ITfInputProcessorProfileMgr iface: %08x\n", hres);
 
     hres = ITfInputProcessorProfileMgr_EnumProfiles(ipp_mgr, 0, &enum_profiles);




More information about the wine-cvs mailing list