DOS: fix loading of DOS exe files
mstefani at redhat.de
Fri Jan 16 04:17:57 CST 2004
Alexandre please don't apply this patch. Ove told me why the hack is in.
I'll redo the patch.
On Fri, Jan 16, 2004 at 02:43:16AM +0100, Michael Stefaniuc wrote:
> the attached patch fixes a problem when loading DOS exe files which have
> 4 bytes on the last page of the executable. There is no comment in the
> code and i googled and couldn't find any reason or hint why having 4
> bytes on the last page is special and why we should than load the full
> 512 bytes of the last page (i'm CC'ing wine-devel just in case). This
> prevents some of the "PC Intern 4, Systemprogrammierung" DOS example
> files from running with an 'invalid exe file' error.
> License: LGPL, X11
> Michael Stefaniuc <mstefani at redhat.com>
> - do not load the full last page of a DOS EXE if we have only 4
> bytes in it.
Michael Stefaniuc Tel.: +49-711-96437-199
System Administration Fax.: +49-711-96437-111
Red Hat GmbH Email: mstefani at redhat.com
Hauptstaetterstr. 58 http://www.redhat.de/
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Size: 189 bytes
Desc: not available
Url : http://www.winehq.org/pipermail/wine-devel/attachments/20040116/a2fed1ed/attachment.pgp
More information about the wine-devel