winevdm: can't exec
Christian Costa
titan.costa at wanadoo.fr
Mon Aug 18 10:22:40 CDT 2003
Hi,
What about adding the comment in the code? :-)
Bye,
Christian
Message du 18/08/03 12:05
De : Dmitry Timoshkov
A : Dominik Strasser
Copie à : wine-patches at winehq.com
Objet : Re: winevdm: can't exec
Hello,
Changelog:
Windows ignores values of e_cparhdr and e_crlc of the MZ header.
--- cvs/hq/wine/loader/module.c Tue Jul 22 01:13:12 2003
+++ wine/loader/module.c Mon Aug 18 09:54:32 2003
@@ -200,10 +200,6 @@
* structure encompasses the "Offset to extended header"
* field.
*/
- if ((header.mz.e_cparhdr << 4) < sizeof(IMAGE_DOS_HEADER))
- return BINARY_DOS;
- if (header.mz.e_crlc && (header.mz.e_lfarlc < sizeof(IMAGE_DOS_HEADER)))
- return BINARY_DOS;
if (header.mz.e_lfanew < sizeof(IMAGE_DOS_HEADER))
return BINARY_DOS;
if (SetFilePointer( hfile, header.mz.e_lfanew, NULL, SEEK_SET ) == -1)
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.winehq.org/pipermail/wine-devel/attachments/20030818/3fd89681/attachment.html
More information about the wine-devel
mailing list