From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2155) id AEF7A3857BB8; Thu, 14 Jul 2022 18:09:22 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org AEF7A3857BB8 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable From: Corinna Vinschen To: cygwin-cvs@sourceware.org Subject: [newlib-cygwin] Cygwin: hookapi: drop handling i386 targets X-Act-Checkin: newlib-cygwin X-Git-Author: Corinna Vinschen X-Git-Refname: refs/heads/master X-Git-Oldrev: 1f962581ffb5255121922cd93dec1fa9a06406d9 X-Git-Newrev: e46f15c2d168abea34b4d880b4eba38d750c7066 Message-Id: <20220714180922.AEF7A3857BB8@sourceware.org> Date: Thu, 14 Jul 2022 18:09:22 +0000 (GMT) X-BeenThere: cygwin-cvs@cygwin.com X-Mailman-Version: 2.1.29 Precedence: list List-Id: Cygwin core component git logs List-Unsubscribe: , List-Archive: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 14 Jul 2022 18:09:22 -0000 https://sourceware.org/git/gitweb.cgi?p=3Dnewlib-cygwin.git;h=3De46f15c2d16= 8abea34b4d880b4eba38d750c7066 commit e46f15c2d168abea34b4d880b4eba38d750c7066 Author: Corinna Vinschen Date: Thu Jul 14 20:06:09 2022 +0200 Cygwin: hookapi: drop handling i386 targets =20 Signed-off-by: Corinna Vinschen Diff: --- winsup/cygwin/hookapi.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/winsup/cygwin/hookapi.cc b/winsup/cygwin/hookapi.cc index fbf13ce90..3ce1e0fb2 100644 --- a/winsup/cygwin/hookapi.cc +++ b/winsup/cygwin/hookapi.cc @@ -39,12 +39,10 @@ PEHeaderFromHModule (HMODULE hModule, bool &is_64bit) { pNTHeader =3D PIMAGE_NT_HEADERS (PBYTE (hModule) + PIMAGE_DOS_HEADER (hModule) ->e_lfanew); - if (pNTHeader->Signature !=3D IMAGE_NT_SIGNATURE) + if (pNTHeader->Signature =3D=3D IMAGE_NT_SIGNATURE) pNTHeader =3D NULL; else if (pNTHeader->FileHeader.Machine =3D=3D IMAGE_FILE_MACHINE_AMD= 64) is_64bit =3D true; - else if (pNTHeader->FileHeader.Machine =3D=3D IMAGE_FILE_MACHINE_I38= 6) - is_64bit =3D false; else pNTHeader =3D NULL; }