Dmitry Timoshkov : advapi32/tests: Add a test for opening an event with access 0.
Alexandre Julliard
julliard at winehq.org
Fri Jan 10 13:22:45 CST 2014
Module: wine
Branch: master
Commit: b5c9bdaddba27c607c13d0d70e0777ecef4a46ab
URL: http://source.winehq.org/git/wine.git/?a=commit;h=b5c9bdaddba27c607c13d0d70e0777ecef4a46ab
Author: Dmitry Timoshkov <dmitry at baikal.ru>
Date: Fri Jan 10 18:26:02 2014 +0900
advapi32/tests: Add a test for opening an event 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 32aa395..df02d85 100644
--- a/dlls/advapi32/tests/security.c
+++ b/dlls/advapi32/tests/security.c
@@ -4624,6 +4624,13 @@ todo_wine
ok(access == map[i].mapped, "%d: expected %#x, got %#x\n", i, map[i].mapped, access);
CloseHandle(dup);
+
+ SetLastError(0xdeadbeef);
+ dup = OpenEventA(0, FALSE, "WineTestEvent");
+todo_wine
+ ok(!dup, "OpenEvent should fail\n");
+todo_wine
+ ok(GetLastError() == ERROR_ACCESS_DENIED, "wrong error %u\n", GetLastError());
}
test_default_handle_security(token, event, &mapping);
More information about the wine-cvs
mailing list