Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8059803

Update use of GetVersionEx to get correct Windows version in hs_err files

XMLWordPrintable

    • b40
    • windows
    • Not verified

        From MSDN:

        "With the release of Windows 8.1, the behavior of the GetVersionEx API has changed in the value it will return for the operating system version. The value returned by the GetVersionEx function now depends on how the application is manifested."

        On Windows 10 (6.4.9841), Java reports Windows 8.1 build 9600, so our OS detection code needs to be updated. One possible solution could be:

        "To obtain the full version number for the operating system, call the GetFileVersionInfo function on one of the system DLLs, such as Kernel32.dll, then call VerQueryValue to obtain the \\StringFileInfo\\<lang><codepage>\\ProductVersion subblock of the file version information."

              ctornqvi Christian Tornqvist
              ctornqvi Christian Tornqvist
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: