kernel32/tests: Add tests for deleting readonly files with NtCreateFile.
commit10ee3f44b1119c7b7e1d4684e691a6cea5713ea2
authorSebastian Lackner <sebastian@fds-team.de>
Fri, 17 Apr 2015 09:22:51 +0000 (17 11:22 +0200)
committerAlexandre Julliard <julliard@winehq.org>
Thu, 30 Apr 2015 10:58:01 +0000 (30 19:58 +0900)
tree06fa714cd0cb2437b2a06c4d9697bba6530d70da
parentdbee90a728a9c2a8bf3009f2a81c4b3d7f5b9eab
kernel32/tests: Add tests for deleting readonly files with NtCreateFile.

Wine currently implements DeleteFile based on NtCreateFile with access mask
GENERIC_READ | GENERIC_WRITE | DELETE, but this is wrong. This test shows that
NtCreateFile with FILE_DELETE_ON_CLOSE should also fail without explicitly
requesting read/write access.
dlls/kernel32/tests/file.c