Author: jmorlan
Date: Thu Aug 7 11:08:00 2008
New Revision: 35163
URL:
http://svn.reactos.org/svn/reactos?rev=35163&view=rev
Log:
On attempts to write to a read-only section view, return STATUS_ACCESS_VIOLATION, not
STATUS_UNSUCCESSFUL. kernel32's UnhandledExceptionFilter depends on this for its
automatic .rsrc deprotection. (Bug 3062)
Modified:
trunk/reactos/ntoskrnl/mm/section.c
Modified: trunk/reactos/ntoskrnl/mm/section.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/mm/section.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/mm/section.c [iso-8859-1] Thu Aug 7 11:08:00 2008
@@ -1286,7 +1286,7 @@
Region->Protect == PAGE_EXECUTE_READWRITE)))
{
DPRINT("Address 0x%.8X\n", Address);
- return(STATUS_UNSUCCESSFUL);
+ return(STATUS_ACCESS_VIOLATION);
}
if (IS_SWAP_FROM_SSE(Entry) ||