- Probe and lock pages with the KernelMode access mode instead of Irp->RequestorMode (UserMode) since we're dealing with memory that we allocated in kernel-mode
- Fixes getpeername() and HTTPS browsing in Firefox

svn path=/trunk/; revision=52597
This commit is contained in:
Cameron Gutman 2011-07-10 02:23:12 +00:00
parent dfe6317126
commit 41406f9697

View file

@ -262,7 +262,7 @@ AfdGetPeerName( PDEVICE_OBJECT DeviceObject, PIRP Irp,
if (Mdl)
{
_SEH2_TRY {
MmProbeAndLockPages(Mdl, Irp->RequestorMode, IoModifyAccess);
MmProbeAndLockPages(Mdl, KernelMode, IoModifyAccess);
} _SEH2_EXCEPT(EXCEPTION_EXECUTE_HANDLER) {
AFD_DbgPrint(MIN_TRACE, ("MmProbeAndLockPages() failed.\n"));
Status = _SEH2_GetExceptionCode();