X-Recipient: archive-cygwin@delorie.com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; q=dns; s=
	default; b=n2pSQCfV7H1HXWhnSlM4VDqXRDIpgoIykLcqXK0WtWYhmgT6YrGcy
	eyNLQoYflP/KWZ9U4x4Y13RLLLJuA1gaB52ADkgfXsvk+uUFSAneMAqI1hRNQJxI
	uG4fnSUI+Ce6SPB/lrQBlSFoVwCGdEukVvOauXwdDmFFsKR7vde+ZQ=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
	:list-unsubscribe:list-subscribe:list-archive:list-post
	:list-help:sender:date:from:to:subject:message-id:reply-to
	:references:mime-version:content-type:in-reply-to; s=default;
	 bh=LMauiTvdYJPN6RrD7iYCvBFeKoU=; b=tTMEtO/whv1W8SNw9bjUg09HJeeW
	F/F29l+syHLZYerI1l+XjWGZa6bfEaxyMGYvAUzmdfwuYNEGvcJpYoXw4NYTxcFF
	ke4U1K6/oG29b27Uxw7N9hLtRn1t9NGtQn4gBWgg0F+5wg23sme1i+wVmDNzV/1s
	SbnTq7h9MAf5dVA=
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: No, score=1.3 required=5.0 tests=AWL,BAYES_50,RDNS_NONE autolearn=no version=3.3.2
X-HELO: calimero.vinschen.de
Date: Tue, 19 Nov 2013 23:34:07 +0100
From: Corinna Vinschen <corinna-cygwin@cygwin.com>
To: cygwin@cygwin.com
Subject: Re: cygcheck -svc segfaults on Windows 8.1 with cygwin64
Message-ID: <20131119223407.GK2936@calimero.vinschen.de>
Reply-To: cygwin@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
References: <1384839303.14356.YahooMailNeo@web125203.mail.ne1.yahoo.com> <20131119100343.GA27525@calimero.vinschen.de> <528B93E6.3030802@etr-usa.com> <20131119171330.GF2936@calimero.vinschen.de> <528BAC3D.9070506@cwilson.fastmail.fm> <20131119190343.GG2936@calimero.vinschen.de> <528BBA1A.2080209@cygwin.com> <20131119202958.GH2936@calimero.vinschen.de> <18727143.20131120005904@mtu-net.ru> <20131119215129.GJ2936@calimero.vinschen.de>
MIME-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;	protocol="application/pgp-signature"; boundary="5me2qT3T17SWzdxI"
Content-Disposition: inline
In-Reply-To: <20131119215129.GJ2936@calimero.vinschen.de>
User-Agent: Mutt/1.5.21 (2010-09-15)

--5me2qT3T17SWzdxI
Content-Type: text/plain; charset=utf-8
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Nov 19 22:51, Corinna Vinschen wrote:
> On Nov 20 00:59, Andrey Repin wrote:
> > Greetings, Corinna Vinschen!
> >=20
> > > Why isn't there at least an additional non-manifest way to claim
> > > compatibility with the current OS? :(
> >=20
> > Because this "claim" is informational, or at least it should be.
>=20
> But apparently it isn't.  It's enforced.
>=20
> However, I just had an in-shower inspiration and following up on it
> I found a way to access the correct version info despite having no
> 8.1 manifest.  I'm still playing with it, but I think I have a working
> patch by tomorrow.

Patch checked in.  It was pretty simple, actually.  Rather than
GetVersionEx from kernel32.dll, just call RtlGetVersion from ntdll.dll.
It returns an OSVERSIONINFOEXW structure just as GetVersionExW, but
it's not tweaked according to the executable manifest, so the returned
info reflects the actual OS info.


Corinna

--=20
Corinna Vinschen                  Please, send mails regarding Cygwin to
Cygwin Maintainer                 cygwin AT cygwin DOT com
Red Hat

--5me2qT3T17SWzdxI
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.15 (GNU/Linux)

iQIcBAEBAgAGBQJSi+dfAAoJEPU2Bp2uRE+gvL8P/A2+mZZV/q70+cLhh1Rbl6Fl
Z7bBnYrWwODF9okRhBrI/Dc8gCqHOnv7ObW3Q4cI5mftyaRLQkKEwt0aDCy088Lv
rsgj6P13x57wnJ1bHTa3gEPPMXWGpk6QGRisHmr3bL8iUmdRXfdz6Nqd2w5vrwd0
aOjfGSnz/sWo26SzvUR89o1kppqUZsvztEq4Gmze/GM0jnn9FVf2s20htR8VDM62
8MWPNQhZewrhoQIUGH12zfndOixjD2eckFoZSRK1hDhVp4kATRCkPccHXOj1yAT/
/49IPPaESx1oahLEf3Lr0WDTt0QTH9kXQPHGrmGTEVXzytfAIid6zyEtJwehD7rg
pyB0FLt/uzi4rrqnh+1C5wMg4X/4BBuNWfW6K8rAQM1pByWDYbnhZabYM0Si5WZ3
3S6OamOR8zghL/sxIUtM2ZrlTZaFKLFMh94JjnbqxwA+s3udZIugtopL1HOxKpPE
Th8RotS5F1W2yGQIKs8S0SgJ5OhlJEknNM+NK2Q+y6aU4DQKx8NUWiOhdqXdYqFb
ozpir2dL22O8EzJEkAsOLxlpxPpjPRYaP7N7ugaab7pTQ7aJwwrVrxfGFOd3REsp
hbecQkh4gqf6nrfRd5Jxp9UmFGROsoRmBLNAC4Hc+QM6SoUlTSXAROQNxF3KDEIc
UIl3HBLD2sSYRNfe9jl/
=mnhx
-----END PGP SIGNATURE-----

--5me2qT3T17SWzdxI--
