mirror of
git://source.winehq.org/git/wine.git
synced 2024-10-14 23:07:47 +00:00
ntdll: Fix the protection state of writable sections.
This commit is contained in:
parent
8e2e95ed7e
commit
5393f0a947
|
@ -1278,7 +1278,7 @@ static NTSTATUS map_image( HANDLE hmapping, int fd, char *base, SIZE_T total_siz
|
||||||
size = ROUND_SIZE( sec->VirtualAddress, sec->SizeOfRawData );
|
size = ROUND_SIZE( sec->VirtualAddress, sec->SizeOfRawData );
|
||||||
|
|
||||||
if (sec->Characteristics & IMAGE_SCN_MEM_READ) vprot |= VPROT_READ;
|
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_WRITE) vprot |= VPROT_READ|VPROT_WRITE;
|
||||||
if (sec->Characteristics & IMAGE_SCN_MEM_EXECUTE) vprot |= VPROT_EXEC;
|
if (sec->Characteristics & IMAGE_SCN_MEM_EXECUTE) vprot |= VPROT_EXEC;
|
||||||
|
|
||||||
/* Dumb game crack lets the AOEP point into a data section. Adjust. */
|
/* Dumb game crack lets the AOEP point into a data section. Adjust. */
|
||||||
|
|
Loading…
Reference in a new issue