[PATCH] mfplat/tests: Skip MFTRegister() tests if permissions are too low.

Zebediah Figura <[email protected]>
Newsgroups gmane.comp.emulators.wine.patches
Message-ID <[email protected]>
Signed-off-by: Zebediah Figura <[email protected]>
---
 dlls/mfplat/tests/mfplat.c | 7 +++++--
 1 file changed, 5 insertions(+), 2 deletions(-)

diff --git a/dlls/mfplat/tests/mfplat.c b/dlls/mfplat/tests/mfplat.c
index 13853c5fb5..f85b00cf82 100644
--- a/dlls/mfplat/tests/mfplat.c
+++ b/dlls/mfplat/tests/mfplat.c
@@ -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)
 {
-- 
2.14.1
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.