advapi32/tests: Add a test for opening a mutex with access 0.

This commit is contained in:
Dmitry Timoshkov 2014-01-10 18:25:58 +09:00 committed by Alexandre Julliard
parent df5affc13f
commit bce1a2b3d5
1 changed files with 7 additions and 0 deletions

View File

@ -4563,6 +4563,13 @@ todo_wine
ok(access == map[i].mapped, "%d: expected %#x, got %#x\n", i, map[i].mapped, access);
CloseHandle(dup);
SetLastError(0xdeadbeef);
dup = OpenMutexA(0, FALSE, "WineTestMutex");
todo_wine
ok(!dup, "OpenMutex should fail\n");
todo_wine
ok(GetLastError() == ERROR_ACCESS_DENIED, "wrong error %u\n", GetLastError());
}
test_default_handle_security(token, mutex, &mapping);