mirror of
https://github.com/reactos/reactos.git
synced 2025-04-19 12:08:55 +00:00
[NTOSKRNL]
The Ewoks concil said it's fine to dereference null pointers in the kernel, so, partly revert r70819 (by partly, I mean: revert everything excepted the comments that were fixed!). Also add asserts that exist on Windows to make it obvious we're about to kill the whole kernel To make it clear: fix the FSD! svn path=/trunk/; revision=70824
This commit is contained in:
parent
a1a070ac19
commit
5e3fd4edeb
1 changed files with 84 additions and 86 deletions
|
@ -2563,8 +2563,8 @@ NtReadFile(IN HANDLE FileHandle,
|
|||
{
|
||||
/* Perform fast read */
|
||||
FastIoDispatch = DeviceObject->DriverObject->FastIoDispatch;
|
||||
if (FastIoDispatch != NULL && FastIoDispatch->FastIoRead != NULL)
|
||||
{
|
||||
ASSERT(FastIoDispatch != NULL && FastIoDispatch->FastIoRead != NULL);
|
||||
|
||||
Success = FastIoDispatch->FastIoRead(FileObject,
|
||||
&CapturedByteOffset,
|
||||
Length,
|
||||
|
@ -2614,7 +2614,6 @@ NtReadFile(IN HANDLE FileHandle,
|
|||
return KernelIosb.Status;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Remember we are sync */
|
||||
Synchronous = TRUE;
|
||||
|
@ -3578,8 +3577,8 @@ NtWriteFile(IN HANDLE FileHandle,
|
|||
{
|
||||
/* Perform fast write */
|
||||
FastIoDispatch = DeviceObject->DriverObject->FastIoDispatch;
|
||||
if (FastIoDispatch != NULL && FastIoDispatch->FastIoWrite != NULL)
|
||||
{
|
||||
ASSERT(FastIoDispatch != NULL && FastIoDispatch->FastIoWrite != NULL);
|
||||
|
||||
Success = FastIoDispatch->FastIoWrite(FileObject,
|
||||
&CapturedByteOffset,
|
||||
Length,
|
||||
|
@ -3627,7 +3626,6 @@ NtWriteFile(IN HANDLE FileHandle,
|
|||
return KernelIosb.Status;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/* Remember we are sync */
|
||||
Synchronous = TRUE;
|
||||
|
|
Loading…
Reference in a new issue