Author: tfaber
Date: Wed Sep 11 23:31:11 2013
New Revision: 60048
URL:
http://svn.reactos.org/svn/reactos?rev=60048&view=rev
Log:
[KERNEL32]
- Fix access rights when using CreateFile with FILE_FLAG_DELETE_ON_CLOSE
Modified:
trunk/reactos/dll/win32/kernel32/client/file/create.c
Modified: trunk/reactos/dll/win32/kernel32/client/file/create.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/kernel32/client/…
==============================================================================
--- trunk/reactos/dll/win32/kernel32/client/file/create.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/kernel32/client/file/create.c [iso-8859-1] Wed Sep 11 23:31:11
2013
@@ -174,7 +174,10 @@
Flags |= FILE_SEQUENTIAL_ONLY;
if(dwFlagsAndAttributes & FILE_FLAG_DELETE_ON_CLOSE)
+ {
Flags |= FILE_DELETE_ON_CLOSE;
+ dwDesiredAccess |= DELETE;
+ }
if(dwFlagsAndAttributes & FILE_FLAG_BACKUP_SEMANTICS)
{