There are some RegQueryValueEx* calls in e.g. net and nio, those can potentially be simplified by using RegGetValue*. Benefit is that some null termination of string results might be not needed any more, that is missing now.
See https://learn.microsoft.com/de-de/windows/win32/api/winreg/nf-winreg-reggetvaluea . --------- - [x] I confirm that I make this contribution in accordance with the [OpenJDK Interim AI Policy](https://openjdk.org/legal/ai). ------------- Commit messages: - JDK-8392650 Changes: https://git.openjdk.org/jdk/pull/32987/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=32987&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8392650 Stats: 73 lines in 3 files changed: 1 ins; 34 del; 38 mod Patch: https://git.openjdk.org/jdk/pull/32987.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/32987/head:pull/32987 PR: https://git.openjdk.org/jdk/pull/32987
