]> sourceware.org Git - newlib-cygwin.git/commit
cygwin: wincap: fix evaluation of build number
authorCorinna Vinschen <corinna@vinschen.de>
Mon, 24 Apr 2017 15:12:16 +0000 (17:12 +0200)
committerCorinna Vinschen <corinna@vinschen.de>
Mon, 24 Apr 2017 15:12:16 +0000 (17:12 +0200)
commit63f19278b998b8145269662cc5a256020f6530bd
tree88218bb5536c509ec4d11c536eaa0baf82768864
parent3885c06c4f9ec813c0a649d3273a6b4ad14fedf2
cygwin: wincap: fix evaluation of build number

RtlGetNtVersionNumbers returns the build number with some upper bits
set for no apparent reason.  The fact that RtlGetNtVersionNumbers is
undocumented doesn't exactly help.

Just filter out the upper WORD for now.  If build numbers are in
danger to become 6 digit numbers, re-evaluate.
winsup/cygwin/wincap.cc
This page took 0.031791 seconds and 5 git commands to generate.