Commit b4843f29 authored by Zebediah Figura's avatar Zebediah Figura Committed by Alexandre Julliard

msctf/tests: Skip tests if limited.

parent e050c249
TESTDLL = msctf.dll
IMPORTS = ole32 user32
IMPORTS = ole32 user32 advapi32
C_SRCS = \
inputprocessor.c
......
......@@ -943,7 +943,18 @@ DEFINE_GUID(GUID_COMPARTMENT_TIPUISTATUS, 0x148ca3ec,0x0366,0x401c,0x8
static HRESULT initialize(void)
{
HRESULT hr;
HKEY hkey;
CoInitialize(NULL);
if (RegOpenKeyExA(HKEY_LOCAL_MACHINE, "Software\\Microsoft\\CTF\\TIP", 0,
KEY_READ|KEY_WRITE, &hkey) != ERROR_SUCCESS)
{
skip("Not enough permission to register input processor\n");
return E_FAIL;
}
RegCloseKey(hkey);
hr = CoCreateInstance (&CLSID_TF_InputProcessorProfiles, NULL,
CLSCTX_INPROC_SERVER, &IID_ITfInputProcessorProfiles, (void**)&g_ipp);
if (SUCCEEDED(hr))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment