Author: cgutman
Date: Sun Jul 10 02:23:12 2011
New Revision: 52597
URL:
http://svn.reactos.org/svn/reactos?rev=52597&view=rev
Log:
[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
Modified:
trunk/reactos/drivers/network/afd/afd/info.c
Modified: trunk/reactos/drivers/network/afd/afd/info.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/drivers/network/afd/afd/in…
==============================================================================
--- trunk/reactos/drivers/network/afd/afd/info.c [iso-8859-1] (original)
+++ trunk/reactos/drivers/network/afd/afd/info.c [iso-8859-1] Sun Jul 10 02:23:12 2011
@@ -262,7 +262,7 @@
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();