mirror of
https://github.com/reactos/reactos.git
synced 2026-05-28 20:03:01 +08:00
[NTOSKRNL] Add a FIXME in NtWriteFile() that explains how broken is our current implementation regarding read-only FSDs
This commit is contained in:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user