mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 12:54:13 +00:00
Make sure the protection flags on the memory view of the PE header
match the actual mmap protection.
This commit is contained in:
parent
6d06d3b927
commit
dfe1df6408
1 changed files with 1 additions and 0 deletions
|
@ -738,6 +738,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
|
|||
|
||||
/* set the image protections */
|
||||
|
||||
VIRTUAL_SetProt( view, ptr, header_size, VPROT_COMMITTED | VPROT_READ );
|
||||
sec = (IMAGE_SECTION_HEADER*)((char *)&nt->OptionalHeader+nt->FileHeader.SizeOfOptionalHeader);
|
||||
for (i = 0; i < nt->FileHeader.NumberOfSections; i++, sec++)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue