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

What's interesting, a lot of Windows developers still seem to use 
'RRF_RT_REG_SZ | RRF_NOEXPAND'
https://github.com/search?q=%22RRF_RT_REG_SZ+%7C+RRF_NOEXPAND%22&type=code

not sure if this is for a good reason or not.

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

PR Comment: https://git.openjdk.org/jdk/pull/32987#issuecomment-5776760711

Reply via email to