mfplat/tests: Skip MFTRegister() tests if permissions are too low.
Signed-off-by: Zebediah Figura <z.figura12@gmail.com> Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
parent
9ce8592b06
commit
87b41b7369
|
@ -73,9 +73,12 @@ static void test_register(void)
|
|||
HRESULT ret;
|
||||
|
||||
ret = MFTRegister(DUMMY_CLSID, MFT_CATEGORY_OTHER, name, 0, 1, input, 1, output, NULL);
|
||||
ok(ret == S_OK, "Failed to register dummy filter: %x\n", ret);
|
||||
if (FAILED(ret))
|
||||
if (ret == E_ACCESSDENIED)
|
||||
{
|
||||
win_skip("Not enough permissions to register a filter\n");
|
||||
return;
|
||||
}
|
||||
ok(ret == S_OK, "Failed to register dummy filter: %x\n", ret);
|
||||
|
||||
if(0)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue