On Tue, 6 Sep 2011, Dmitry Timoshkov wrote: [...]
- if (sec->Characteristics & IMAGE_SCN_MEM_WRITE) vprot |=
VPROT_READ|VPROT_WRITE;
- if (sec->Characteristics & IMAGE_SCN_MEM_WRITE) vprot |= VPROT_WRITECOPY;
So, probably restore adding VPROT_READ.
Yep, that works. André, I'll let you do the honors for the patch.