Commit 38affc40 authored by Alexandre Julliard's avatar Alexandre Julliard

We no longer need to make the import directory writable, the loader

takes care of that now.
parent bfac60bf
......@@ -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 );
......
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