Module: wine Branch: master Commit: bce1a2b3d5c90eb31052a13306b0b2e48f081be2 URL: http://source.winehq.org/git/wine.git/?a=commit;h=bce1a2b3d5c90eb31052a13306...
Author: Dmitry Timoshkov dmitry@baikal.ru Date: Fri Jan 10 18:25:58 2014 +0900
advapi32/tests: Add a test for opening a mutex with access 0.
---
dlls/advapi32/tests/security.c | 7 +++++++ 1 file changed, 7 insertions(+)
diff --git a/dlls/advapi32/tests/security.c b/dlls/advapi32/tests/security.c index 57ad4ce..32aa395 100644 --- a/dlls/advapi32/tests/security.c +++ b/dlls/advapi32/tests/security.c @@ -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);