Commit 49245146 authored by Marcus Meissner's avatar Marcus Meissner Committed by Alexandre Julliard

Removed too strict header check to enable execution of handcoded PE

exes.
parent 5f5034ff
......@@ -192,12 +192,6 @@ enum binary_type MODULE_GetBinaryType( HANDLE hfile )
* This will tell us if there is more header information
* to read or not.
*/
/* But before we do we will make sure that header
* structure encompasses the "Offset to extended header"
* field.
*/
if (header.mz.e_lfanew < sizeof(IMAGE_DOS_HEADER))
return BINARY_DOS;
if (SetFilePointer( hfile, header.mz.e_lfanew, NULL, SEEK_SET ) == -1)
return BINARY_DOS;
if (!ReadFile( hfile, magic, sizeof(magic), &len, NULL ) || len != sizeof(magic))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment