winevdm: can't exec

Dmitry Timoshkov dmitry at baikal.ru
Mon Aug 18 05:05:07 CDT 2003


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)






More information about the wine-patches mailing list