diff --git a/winsup/cygwin/wincap.cc b/winsup/cygwin/wincap.cc index cb52aad6f..c8799f3ec 100644 --- a/winsup/cygwin/wincap.cc +++ b/winsup/cygwin/wincap.cc @@ -118,6 +118,7 @@ wincapc::init () RtlGetNtVersionNumbers (&version.dwMajorVersion, &version.dwMinorVersion, &version.dwBuildNumber); + version.dwBuildNumber &= 0xffff; switch (version.dwMajorVersion) {