- NtWrite/ReadFile: Don't hardcode Irp->RequestorMode to KernelMode! Instead, use...
authorStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 30 Oct 2008 15:59:00 +0000 (15:59 +0000)
committerStefan Ginsberg <stefanginsberg@gmail.com>
Thu, 30 Oct 2008 15:59:00 +0000 (15:59 +0000)
commitf467429483700b6e58c1d0bf0277464fcfb1291d
tree31099a6b743f213ab529516863c190a76fabfa24
parent7bfa0b86e36b6722d2ac6134f03cb38cc545dcbf
- NtWrite/ReadFile: Don't hardcode Irp->RequestorMode to KernelMode! Instead, use the PreviousMode we saved earlier. This caused user mode APCs to be called from kernel mode, which is a...very...bad... idea.
- Spotted by bug 3607 and exposed by ntdll Winetests "file"
See issue #3607 for more details.

svn path=/trunk/; revision=37102
reactos/ntoskrnl/io/iomgr/iofunc.c