Cygwin: hookapi: drop handling i386 targets
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
This commit is contained in:
parent
1f962581ff
commit
e46f15c2d1
|
@ -39,12 +39,10 @@ PEHeaderFromHModule (HMODULE hModule, bool &is_64bit)
|
||||||
{
|
{
|
||||||
pNTHeader = PIMAGE_NT_HEADERS (PBYTE (hModule)
|
pNTHeader = PIMAGE_NT_HEADERS (PBYTE (hModule)
|
||||||
+ PIMAGE_DOS_HEADER (hModule) ->e_lfanew);
|
+ PIMAGE_DOS_HEADER (hModule) ->e_lfanew);
|
||||||
if (pNTHeader->Signature != IMAGE_NT_SIGNATURE)
|
if (pNTHeader->Signature == IMAGE_NT_SIGNATURE)
|
||||||
pNTHeader = NULL;
|
pNTHeader = NULL;
|
||||||
else if (pNTHeader->FileHeader.Machine == IMAGE_FILE_MACHINE_AMD64)
|
else if (pNTHeader->FileHeader.Machine == IMAGE_FILE_MACHINE_AMD64)
|
||||||
is_64bit = true;
|
is_64bit = true;
|
||||||
else if (pNTHeader->FileHeader.Machine == IMAGE_FILE_MACHINE_I386)
|
|
||||||
is_64bit = false;
|
|
||||||
else
|
else
|
||||||
pNTHeader = NULL;
|
pNTHeader = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue