From 6f66c1c75b35ad6f89292642cbca1a254b9bd5bb Mon Sep 17 00:00:00 2001 From: Dmitry Timoshkov Date: Mon, 18 Aug 2003 19:51:42 +0000 Subject: [PATCH] Windows ignores values of e_cparhdr and e_crlc of the MZ header. --- loader/module.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/loader/module.c b/loader/module.c index a54e8720742..f75ce9fe1e9 100644 --- a/loader/module.c +++ b/loader/module.c @@ -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)