mirror of
https://github.com/reactos/reactos.git
synced 2024-06-30 09:50:07 +00:00
[AFD]
- 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:
parent
dfe6317126
commit
41406f9697
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue