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)

svn path=/trunk/; revision=35163
This commit is contained in:
Jeffrey Morlan 2008-08-07 16:08:00 +00:00
parent 359151f57a
commit 5a1ef6a0a8

View File

@ -1286,7 +1286,7 @@ MmAccessFaultSectionView(PMM_AVL_TABLE AddressSpace,
Region->Protect == PAGE_EXECUTE_READWRITE)))
{
DPRINT("Address 0x%.8X\n", Address);
return(STATUS_UNSUCCESSFUL);
return(STATUS_ACCESS_VIOLATION);
}
if (IS_SWAP_FROM_SSE(Entry) ||