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:
Zebediah Figura 2017-10-24 16:13:55 -05:00 committed by Alexandre Julliard
parent 9ce8592b06
commit 87b41b7369
1 changed files with 5 additions and 2 deletions

View File

@ -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)
{