Windows ignores values of e_cparhdr and e_crlc of the MZ header.

oldstable
Dmitry Timoshkov 2003-08-18 19:51:42 +00:00 committed by Alexandre Julliard
parent 11e844db58
commit 6f66c1c75b
1 changed files with 0 additions and 4 deletions

View File

@ -200,10 +200,6 @@ enum binary_type MODULE_GetBinaryType( HANDLE hfile )
* 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)