[breakage] Set the correct permissions on the PE image sections.
Uwe Bonnes
bon at elektron.ikp.physik.tu-darmstadt.de
Fri Aug 2 02:40:23 CDT 2002
>>>>> "Alexandre" == Alexandre Julliard <julliard at winehq.com> writes:
Alexandre> Uwe Bonnes <bon at elektron.ikp.physik.tu-darmstadt.de> writes:
>> PROPSHEET_CreatePage writes to ppshpage->u.pResource when
>> PSP_DLGINDIRECT is set. MSDN also tells that applications will break
>> if pResource is not writable. It seems that above patch maps the
>> resource section write protected.
Alexandre> Actually it should be read-only, and the default exception
Alexandre> handler is supposed to unprotect it to hide bugs in broken
Alexandre> apps. But writing to resources is a bug in any case, and that
Alexandre> propsheet code needs to be fixed. In fact there's already a
Alexandre> hack in there to avoid the same issue with builtin resources;
Alexandre> I guess it's really time to fix it properly.
Yes, I forget to note that it works with (NT) native commctrl and so the
protection seems right...
Bye
--
Uwe Bonnes bon at elektron.ikp.physik.tu-darmstadt.de
Institut fuer Kernphysik Schlossgartenstrasse 9 64289 Darmstadt
--------- Tel. 06151 162516 -------- Fax. 06151 164321 ----------
More information about the wine-devel
mailing list