mirror of
https://github.com/reactos/reactos.git
synced 2025-02-22 16:36:33 +00:00
[NTOSKRNL] Add a FIXME in NtWriteFile() that explains how broken is our current implementation regarding read-only FSDs
This commit is contained in:
parent
cbf0430b56
commit
1bef48796e
1 changed files with 7 additions and 1 deletions
|
@ -3499,7 +3499,13 @@ NtWriteFile(IN HANDLE FileHandle,
|
|||
CapturedByteOffset.QuadPart = 0;
|
||||
IOTRACE(IO_API_DEBUG, "FileHandle: %p\n", FileHandle);
|
||||
|
||||
/* Get File Object */
|
||||
/* Get File Object
|
||||
* FIXME: We should call ObReferenceFileObjectForWrite() instead to
|
||||
* check whether write access was actually granted. If not it will
|
||||
* fail and we will return.
|
||||
* That would allow avoiding ASSERT on FastIO later on if the FSD
|
||||
* is read-only
|
||||
*/
|
||||
Status = ObReferenceObjectByHandle(FileHandle,
|
||||
0,
|
||||
IoFileObjectType,
|
||||
|
|
Loading…
Reference in a new issue