mirror of
https://github.com/reactos/reactos.git
synced 2025-06-12 01:58:30 +00:00
[NTFS]
Cherry pick a change from r71224 by Trevor: - Don't fail too early in NtfsCreateFile() when requesting write/supersede operation. This allows already setting appropriate error in certain cases and making the driver more consistent svn path=/trunk/; revision=71229
This commit is contained in:
parent
64bc0243c3
commit
81f2467b66
1 changed files with 0 additions and 7 deletions
|
@ -359,13 +359,6 @@ NtfsCreateFile(PDEVICE_OBJECT DeviceObject,
|
||||||
|
|
||||||
FileObject = Stack->FileObject;
|
FileObject = Stack->FileObject;
|
||||||
|
|
||||||
if (RequestedDisposition == FILE_CREATE ||
|
|
||||||
RequestedDisposition == FILE_OVERWRITE_IF ||
|
|
||||||
RequestedDisposition == FILE_SUPERSEDE)
|
|
||||||
{
|
|
||||||
return STATUS_ACCESS_DENIED;
|
|
||||||
}
|
|
||||||
|
|
||||||
if ((RequestedOptions & FILE_OPEN_BY_FILE_ID) == FILE_OPEN_BY_FILE_ID)
|
if ((RequestedOptions & FILE_OPEN_BY_FILE_ID) == FILE_OPEN_BY_FILE_ID)
|
||||||
{
|
{
|
||||||
ULONGLONG MFTId;
|
ULONGLONG MFTId;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue