Commit 98b991fd authored by Nikolay Sivov's avatar Nikolay Sivov Committed by Alexandre Julliard

setupapi/tests: Skip a test if user is not allowed to open logging.

parent 90d88968
...@@ -789,6 +789,11 @@ static void test_SetupLogError(void) ...@@ -789,6 +789,11 @@ static void test_SetupLogError(void)
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
ret = SetupOpenLog(FALSE); ret = SetupOpenLog(FALSE);
if (!ret && GetLastError() == ERROR_ACCESS_DENIED)
{
win_skip("SetupOpenLog() failed on insufficient permissions\n");
return;
}
ok(ret, "SetupOpenLog failed, error %d\n", GetLastError()); ok(ret, "SetupOpenLog failed, error %d\n", GetLastError());
SetLastError(0xdeadbeef); SetLastError(0xdeadbeef);
......
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