Write section access also assumes read access.

This commit is contained in:
Dmitry Timoshkov 2004-02-17 20:22:43 +00:00 committed by Alexandre Julliard
parent f28552b3d3
commit cba227bcec
1 changed files with 1 additions and 1 deletions

View File

@ -763,7 +763,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
DWORD size = ROUND_SIZE( sec->VirtualAddress, sec->Misc.VirtualSize );
BYTE vprot = VPROT_COMMITTED;
if (sec->Characteristics & IMAGE_SCN_MEM_READ) vprot |= VPROT_READ;
if (sec->Characteristics & IMAGE_SCN_MEM_WRITE) vprot |= VPROT_WRITE|VPROT_WRITECOPY;
if (sec->Characteristics & IMAGE_SCN_MEM_WRITE) vprot |= VPROT_READ|VPROT_WRITE|VPROT_WRITECOPY;
if (sec->Characteristics & IMAGE_SCN_MEM_EXECUTE) vprot |= VPROT_EXEC;
/* make sure the import directory is writable */