mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-03 04:13:31 +00:00
[KERNEL32]
- Fix access rights when using CreateFile with FILE_FLAG_DELETE_ON_CLOSE svn path=/trunk/; revision=60048
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user