Skip to content
Snippets Groups Projects
Commit 38affc40 authored by Alexandre Julliard's avatar Alexandre Julliard
Browse files

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

takes care of that now.
parent bfac60bf
No related branches found
No related tags found
No related merge requests found
......@@ -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 );
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment