[KERNEL32]

- Fix access rights when using CreateFile with FILE_FLAG_DELETE_ON_CLOSE

svn path=/trunk/; revision=60048
This commit is contained in:
Thomas Faber 2013-09-11 23:31:11 +00:00
parent a9b62ec084
commit 9a9573505b

View file

@ -174,7 +174,10 @@ HANDLE WINAPI CreateFileW (LPCWSTR lpFileName,
Flags |= FILE_SEQUENTIAL_ONLY;
if(dwFlagsAndAttributes & FILE_FLAG_DELETE_ON_CLOSE)
{
Flags |= FILE_DELETE_ON_CLOSE;
dwDesiredAccess |= DELETE;
}
if(dwFlagsAndAttributes & FILE_FLAG_BACKUP_SEMANTICS)
{