mirror of
https://github.com/reactos/reactos.git
synced 2025-01-04 05:20:54 +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:
parent
a9b62ec084
commit
9a9573505b
1 changed files with 3 additions and 0 deletions
|
@ -174,7 +174,10 @@ HANDLE WINAPI CreateFileW (LPCWSTR lpFileName,
|
||||||
Flags |= FILE_SEQUENTIAL_ONLY;
|
Flags |= FILE_SEQUENTIAL_ONLY;
|
||||||
|
|
||||||
if(dwFlagsAndAttributes & FILE_FLAG_DELETE_ON_CLOSE)
|
if(dwFlagsAndAttributes & FILE_FLAG_DELETE_ON_CLOSE)
|
||||||
|
{
|
||||||
Flags |= FILE_DELETE_ON_CLOSE;
|
Flags |= FILE_DELETE_ON_CLOSE;
|
||||||
|
dwDesiredAccess |= DELETE;
|
||||||
|
}
|
||||||
|
|
||||||
if(dwFlagsAndAttributes & FILE_FLAG_BACKUP_SEMANTICS)
|
if(dwFlagsAndAttributes & FILE_FLAG_BACKUP_SEMANTICS)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue