On Mon, 21 Sep 2026 13:06:25 GMT, Matthias Baesken <[email protected]> wrote:

> 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).

This pull request has now been integrated.

Changeset: 7dd0797a
Author:    Matthias Baesken <[email protected]>
URL:       
https://git.openjdk.org/jdk/commit/7dd0797a5388db360d709dab988b72ef332511f9
Stats:     72 lines in 3 files changed: 1 ins; 37 del; 34 mod

8392650: Replace some RegQueryValueEx* function calls in jdk java.base native 
libs by RegGetValue

Reviewed-by: djelinski

-------------

PR: https://git.openjdk.org/jdk/pull/32987

Reply via email to