Commit f1651e92 authored by Henri Verbeet's avatar Henri Verbeet Committed by Alexandre Julliard

ntdll: Use the copy of the section headers for applying memory protections as well in map_image().

parent 31eff066
......@@ -1348,7 +1348,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
VIRTUAL_SetProt( view, ptr, ROUND_SIZE( 0, header_size ), VPROT_COMMITTED | VPROT_READ );
sec = (IMAGE_SECTION_HEADER*)((char *)&nt->OptionalHeader+nt->FileHeader.SizeOfOptionalHeader);
sec = sections;
for (i = 0; i < nt->FileHeader.NumberOfSections; i++, sec++)
{
SIZE_T size;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment