mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-31 11:43:31 +00:00
We no longer need to make the import directory writable, the loader
takes care of that now.
This commit is contained in:
parent
bfac60bfeb
commit
38affc4097
1 changed files with 0 additions and 6 deletions
|
@ -1009,12 +1009,6 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, DWORD total_size
|
|||
if (sec->Characteristics & IMAGE_SCN_MEM_READ) vprot |= VPROT_READ;
|
||||
if (sec->Characteristics & IMAGE_SCN_MEM_WRITE) vprot |= VPROT_READ|VPROT_WRITECOPY;
|
||||
if (sec->Characteristics & IMAGE_SCN_MEM_EXECUTE) vprot |= VPROT_EXEC;
|
||||
|
||||
/* make sure the import directory is writable */
|
||||
if (imports && imports->VirtualAddress >= sec->VirtualAddress &&
|
||||
imports->VirtualAddress < sec->VirtualAddress + size)
|
||||
vprot |= VPROT_READ|VPROT_WRITECOPY;
|
||||
|
||||
VIRTUAL_SetProt( view, ptr + sec->VirtualAddress, size, vprot );
|
||||
}
|
||||
RtlLeaveCriticalSection( &csVirtual );
|
||||
|
|
Loading…
Reference in a new issue